Exemple #1
0
 def test_with_both_username_and_name(self):
     username, full_name = 'Testusername', 'Full User\'s name'
     u = User(username=username, full_name=full_name)
     self.assertEqual(get_name(u), full_name)
Exemple #2
0
 def test_with_username_only(self):
     username = '******'
     u = User(username=username)
     self.assertEqual(get_name(u), username)