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