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')
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')
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)