def test_name_to_number_hand(self): self.assertEqual(r.name_to_number('hand'),9999)
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);
def test_name_to_number_scissors(self): self.assertEqual(r.name_to_number('scissors'),4)
def test_name_to_number_thumb(self): self.assertEqual(r.name_to_number('thumb'),9999)
def test_name_to_number_lizard(self): self.assertEqual(r.name_to_number('lizard'),3)
def test_name_to_number_paper(self): self.assertEqual(r.name_to_number('paper'),2)
def test_name_to_number_Spock(self): self.assertEqual(r.name_to_number('Spock'),1)
def test_name_to_number_rock(self): self.assertEqual(r.name_to_number('rock'),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)