Пример #1
0
 def test_first_m_last(self):
     self.assertEqual(t.person_name("Joe Q Smith"), 'Herbie Hancock')
Пример #2
0
 def test_first_last(self):
     self.assertEqual(t.person_name("Joe Smith"), 'Nick LaRocca')
Пример #3
0
 def test_first_only(self):
     self.assertEqual(t.person_name("Joe"), 'Christian')
Пример #4
0
 def test_first_only_2(self):
     self.assertEqual(t.person_name("Smith"), 'Davis')
Пример #5
0
 def test_empty(self):
     self.assertEqual(t.person_name(""), '')