Пример #1
0
class CheetahTest(unittest.TestCase):
    def setUp(self):
        self.my_cheetah = Cheetah("chester", "carnivores", "growl",
                                  "run really fast")

    def test_cheetah_noise(self):
        self.assertEqual(self.my_cheetah.get_noise(), "growl", "This is wrong")

    def test_cheetah_move(self):
        self.assertEqual(self.my_cheetah.get_move(), "run really fast",
                         "Moving incorrect")
Пример #2
0
class CheetahTest(unittest.TestCase):

    def setUp(self):
        self.my_cheetah = Cheetah("chester", "carnivores",
                             "growl", "run really fast")

    def test_cheetah_noise(self):
        self.assertEqual(self.my_cheetah.get_noise(), "growl", "This is wrong")

    def test_cheetah_move(self):
        self.assertEqual(self.my_cheetah.get_move(), "run really fast",
                         "Moving incorrect")
Пример #3
0
 def setUp(self):
     self.my_cheetah = Cheetah("chester", "carnivores",
                          "growl", "run really fast")
Пример #4
0
 def setUp(self):
     self.my_cheetah = Cheetah("chester", "carnivores", "growl",
                               "run really fast")