Esempio n. 1
0
 def test_user_id_exists_not(self):
     exists, ref = UsersDb.user_id_exists('NoneExistingIdlskjdfklsdjfljs')
     assert exists == False
     assert ref == None
Esempio n. 2
0
 def test_user_id_exists(self):
     exists, ref = UsersDb.user_id_exists(TEST_USER_ID)
     assert exists == True
     assert ref.get().id == TEST_USER_ID