from project.animal import Animal from project.dog import Dog animal = Animal() print(animal.eat()) dog = Dog() print(dog.bark()) print(dog.eat())
def __init__(self, name): Animal.__init__(self, name)
def test_animal(self): a = Animal() self.assertEqual(a.eat(), "eating...")
def test_animal(self): a = Animal() res = a.eat() self.assertEqual(res, "eating...")