本文整理汇总了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')
示例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')
示例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)