Beispiel #1
0
 def test_greet(self):
     pet = Pet(name="TestPet", species="dog", hunger=10)
     self.assertEquals(pet.greet(), "Hi, I am TestPet the dog.")
 def test_greet(self):
     pet = Pet(name="TestPet", species="dog", hunger=10)
     self.assertEqual(pet.greet(),
                      "HI my name is TestPet, and I am a dog pls feed me.")