def test_find_user_by_id(self): session = Session() alice = api.find_user_by_id(session, 1) self.assertEqual(alice.displayname, "alice") self.assertEqual(alice.email, "*****@*****.**") self.assertEqual(alice.sex, "f") self.assertEqual(alice.date_of_birth, date(1985, 3, 26))
def test_find_user_by_id(self): session = Session() alice = api.find_user_by_id(session, 1) self.assertEqual(alice.nickname, "alice") self.assertEqual(alice.email, '*****@*****.**') self.assertEqual(alice.gender, 'female') self.assertEqual(alice.surname, 'Johns')
def test_find_user_by_id(self): session = Session() alice = api.find_user_by_id(session, 1) self.assertEqual(alice.nickname, 'alice') self.assertEqual(alice.email, '*****@*****.**') self.assertEqual(alice.gender, 'female') self.assertEqual(alice.surname, 'Johns')
def test_delete_user_by_id(self): session = Session() self.assertEqual(api.delete_user_by_id(session, 1), 1) self.assertIsNone(api.find_user_by_id(session, 1))