Пример #1
0
 def test_name_to_number_hand(self):
     self.assertEqual(r.name_to_number('hand'),9999)
Пример #2
0
 def test_name_to_number(self):
     self.assertEquals(rpsls.name_to_number("rock"),     0);
     self.assertEquals(rpsls.name_to_number("Spock"),    1);
     self.assertEquals(rpsls.name_to_number("paper"),    2);
     self.assertEquals(rpsls.name_to_number("lizard"),   3);
     self.assertEquals(rpsls.name_to_number("scissors"), 4);
Пример #3
0
 def test_name_to_number_scissors(self):
     self.assertEqual(r.name_to_number('scissors'),4)
Пример #4
0
 def test_name_to_number_thumb(self):
     self.assertEqual(r.name_to_number('thumb'),9999)
Пример #5
0
 def test_name_to_number_lizard(self):
     self.assertEqual(r.name_to_number('lizard'),3)
Пример #6
0
 def test_name_to_number_paper(self):
     self.assertEqual(r.name_to_number('paper'),2)
Пример #7
0
 def test_name_to_number_Spock(self):
     self.assertEqual(r.name_to_number('Spock'),1)
Пример #8
0
 def test_name_to_number_rock(self):
     self.assertEqual(r.name_to_number('rock'),0)
Пример #9
0
 def test_name_to_number(self):
     self.assertEquals(rpsls.name_to_number("rock"), 0)
     self.assertEquals(rpsls.name_to_number("Spock"), 1)
     self.assertEquals(rpsls.name_to_number("paper"), 2)
     self.assertEquals(rpsls.name_to_number("lizard"), 3)
     self.assertEquals(rpsls.name_to_number("scissors"), 4)