def test_total_jhon(self): """this test will verify if the method total will return the correct response""" obj = LineItem('banana', 4, .5) response = obj.total() self.assertEqual(response, 2.0)
def test_total_ana(self): """this test will verify if the method total will return the correct response""" obj = LineItem('apple', 10, 1.5) response = obj.total() self.assertEqual(response, 15.0)