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