Beispiel #1
0
 def test_return_error2(self):
     self.assertEqual(
         "Error => Not found: 5-555-555-5555",
         phone(self.dr, "5-555-555-5555"),
     )
Beispiel #2
0
 def test_return_correct_result6(self):
     self.assertEqual(
         "Phone => 1-498-512-2222, Name => Bernard Deltheil, Address => Mount Av. Eldorado",
         phone(self.dr, "1-498-512-2222"),
     )
Beispiel #3
0
 def test_return_error1(self):
     self.assertEqual(
         "Error => Too many people: 1-098-512-2222",
         phone(self.dr, "1-098-512-2222"),
     )
Beispiel #4
0
 def test_return_correct_result5(self):
     self.assertEqual(
         "Phone => 1-121-504-8974, Name => Arthur Clarke, Address => San Antonio TT-45120",
         phone(self.dr, "1-121-504-8974"),
     )
Beispiel #5
0
 def test_return_correct_result4(self):
     self.assertEqual(
         "Phone => 1-541-754-3010, Name => J Steeve, Address => 156 Alphand St.",
         phone(self.dr, "1-541-754-3010"),
     )
Beispiel #6
0
 def test_return_correct_result3(self):
     self.assertEqual(
         "Phone => 1-908-512-2222, Name => Peter O'Brien, Address => High Street CC-47209",
         phone(self.dr, "1-908-512-2222"),
     )
Beispiel #7
0
 def test_return_correct_result2(self):
     self.assertEqual(
         "Phone => 1-921-512-2222, Name => Wilfrid Stevens, Address => Wild Street AA-67209",
         phone(self.dr, "1-921-512-2222"),
     )
Beispiel #8
0
 def test_return_correct_result1(self):
     self.assertEqual(
         "Phone => 48-421-674-8974, Name => Anastasia, Address => Via Quirinal Roma",
         phone(self.dr, "48-421-674-8974"))