Beispiel #1
0
 def test_get_lastname_firstletter_on_other(self):
     from karl.models.peopledirectory import get_lastname_firstletter
     obj = testing.DummyModel(lastname='Smith')
     self.assertEqual(get_lastname_firstletter(obj, 0), 0)
Beispiel #2
0
 def test_get_lastname_firstletter_on_other(self):
     from karl.models.peopledirectory import get_lastname_firstletter
     obj = testing.DummyModel(lastname='Smith')
     self.assertEqual(get_lastname_firstletter(obj, 0), 0)
Beispiel #3
0
 def test_get_lastname_firstletter_on_profile(self):
     from karl.models.peopledirectory import get_lastname_firstletter
     obj = _makeProfile(lastname='Smith')
     self.assertEqual(get_lastname_firstletter(obj, 0), 'S')
Beispiel #4
0
 def test_get_lastname_firstletter_on_profile(self):
     from karl.models.peopledirectory import get_lastname_firstletter
     obj = _makeProfile(lastname='Smith')
     self.assertEqual(get_lastname_firstletter(obj, 0), 'S')