Example #1
0
 def test_Epty(self):
     self.assertEqual(translate(""), None)
Example #2
0
 def test_Jack(self):
     self.assertEqual(translate("Jack"), "012314243423",
                      "Make sure that you return the number as a string")
Example #3
0
 def test_AnotherPerson(self):
     self.assertEqual(translate("AnotherPerson"), "01231474747")
Example #4
0
 def test_Tom(self):
     self.assertEqual(translate("Tom"), "012314234323432")
 def test_cat_in_house(self):
     inputs = "el gato esta en la casa"
     outputs = "the cat is in the house"
     self.assertEqual(translate(inputs), outputs)
 def test_the_cat(self):
     self.assertEqual(translate("el gato"), "the cat")
 def test_cat(self):
     self.assertEqual(translate("gato"), "cat")