class ItemTests(unittest.TestCase): def setUp(self): self.item = Item("Knife", 7.00) def test_get_name(self): self.assertEqual("Knife", self.item.get_name()) def test_get_price(self): self.assertEqual(7.00, self.item.get_price())
def setUp(self): self.reg = CashRegister() self.item = Item("Fork", 5.10)
def setUp(self): self.item = Item("Knife", 7.00)