def test_gst_food(self): UNIT_PRICE = 100 CATEGORY = "food-grains" gst_obj = GST(UNIT_PRICE, CATEGORY) self.assertEqual(gst_obj.calculate_gst(), 0.0, "Should be 0")
def test_gst_cosmetics(self): UNIT_PRICE = 200 CATEGORY = "cosmetics" gst_obj = GST(UNIT_PRICE, CATEGORY) self.assertEqual(gst_obj.calculate_gst(), 56, "Should be 256")
def test_gst_electronics(self): UNIT_PRICE = 5000 CATEGORY = "electronics" gst_obj = GST(UNIT_PRICE, CATEGORY) self.assertEqual(gst_obj.calculate_gst(), 900, "Should be 900")
def test_gst_furniture(self): UNIT_PRICE = 20000 CATEGORY = "furniture" gst_obj = GST(UNIT_PRICE, CATEGORY) self.assertEqual(gst_obj.calculate_gst(), 1000, "Should be 1000")