def test_remove_user_by_id(self): UsersDb.remove_user_by_id(TEST_USER_ID) snap = firestore_client().document(u'users', TEST_USER_ID).get() assert snap.exists == False col = firestore_client().collection(u'users', TEST_USER_ID, u'records') contains_sth = False for ref in col.list_documents(): contains_sth = True break assert contains_sth == False
def tearDown(self): UsersDb.remove_user_by_id(TEST_USER_ID) UsersDb.remove_user_by_id(TEST_USER_ID+'NEW')