def test_get_name(self): pet_instance = Pet('Clifford', 'Dog', 12) self.assertEqual(pet_instance.get_name(), 'Clifford')
from pet import Pet mypet = Pet('ian', 2) print(mypet) print(mypet.get_name()) print(mypet.get_age())
def test_get_name(self): pet_instance = Pet('Clifford', 'Dog', 12) self.assertEqual(pet_instance.get_name(), 'Clifford')
from pet import Pet mypet = Pet('ian', 2) print(mypet) print(mypet.get_name()) print(mypet.get_age())