def test_item_rounded_taxes_7(self): '''Test taxes are not rounded up for tax equal to multiple of 0.05''' item = Item('-', 10.35, True, 'dummy item') self.assertEqual(item.get_price()[1], 1.60)
def test_item_rounded_taxes_6(self): '''Test taxes are rounded up to the closest multiple of 0.05 above''' item = Item('-', 10.3, True, 'dummy item') self.assertEqual(item.get_price()[1], 1.55)
def test_item_non_exempt_imported_5(self): '''Test price is updated correctly for imported non exempt items''' item = Item('-', 10.00, True, 'dummy item') self.assertEqual(item.get_price()[0], 11.50)
def test_item_non_exempt_4(self): '''Test price is updated correctly for non exempt items''' item = Item('-', 10.00, False, 'dummy item') self.assertEqual(item.get_price()[0], 11.00)
def test_item_exempt_imported_3(self): '''Test price is updated only with import tax for imported exempt items''' item = Item('food', 10.00, True, 'dummy item') self.assertEqual(item.get_price()[0], 10.50)
def test_item_exempt_3(self): '''Test price is not updated for exempt items''' item = Item('food', 10.00, False, 'dummy item') self.assertEqual(item.get_price()[0], 10.00)