Exemple #1
0
 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))
Exemple #2
0
 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')
Exemple #3
0
 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')
Exemple #4
0
 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))
Exemple #5
0
 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))
Exemple #6
0
 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))