当前位置: 首页>>代码示例>>Python>>正文


Python UsagePlugin._incomplete_price方法代码示例

本文整理汇总了Python中ralph_pricing.plugins.reports.usage.UsagePlugin._incomplete_price方法的典型用法代码示例。如果您正苦于以下问题:Python UsagePlugin._incomplete_price方法的具体用法?Python UsagePlugin._incomplete_price怎么用?Python UsagePlugin._incomplete_price使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ralph_pricing.plugins.reports.usage.UsagePlugin的用法示例。


在下文中一共展示了UsagePlugin._incomplete_price方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_incomplete_price_incomplete_price

# 需要导入模块: from ralph_pricing.plugins.reports.usage import UsagePlugin [as 别名]
# 或者: from ralph_pricing.plugins.reports.usage.UsagePlugin import _incomplete_price [as 别名]
 def test_incomplete_price_incomplete_price(self):
     result = UsagePlugin._incomplete_price(
         usage_type=self.usage_type,
         start=datetime.date(2013, 10, 10),
         end=datetime.date(2013, 11, 20),
     )
     self.assertEquals(result, 'Incomplete price')
开发者ID:ar4s,项目名称:ralph_pricing,代码行数:9,代码来源:test_usage_base.py

示例2: test_incomplete_price_internet_providers_no_price

# 需要导入模块: from ralph_pricing.plugins.reports.usage import UsagePlugin [as 别名]
# 或者: from ralph_pricing.plugins.reports.usage.UsagePlugin import _incomplete_price [as 别名]
 def test_incomplete_price_internet_providers_no_price(self):
     result = UsagePlugin._incomplete_price(
         usage_type=self.usage_type_cost_sum,
         start=datetime.date(2013, 10, 26),
         end=datetime.date(2013, 11, 20),
     )
     self.assertEquals(result, 'No price')
开发者ID:kula1922,项目名称:ralph_pricing,代码行数:9,代码来源:test_usage_base.py

示例3: test_incomplete_price_by_warehouse

# 需要导入模块: from ralph_pricing.plugins.reports.usage import UsagePlugin [as 别名]
# 或者: from ralph_pricing.plugins.reports.usage.UsagePlugin import _incomplete_price [as 别名]
 def test_incomplete_price_by_warehouse(self):
     result = UsagePlugin._incomplete_price(
         usage_type=self.usage_type_cost_wh,
         start=datetime.date(2013, 10, 10),
         end=datetime.date(2013, 10, 20),
         warehouse=self.warehouse1,
     )
     self.assertEquals(result, None)
开发者ID:ar4s,项目名称:ralph_pricing,代码行数:10,代码来源:test_usage_base.py


注:本文中的ralph_pricing.plugins.reports.usage.UsagePlugin._incomplete_price方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。