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)
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)
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')
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')