Beispiel #1
0
 def tearDown(self):
     # remove all testuser* users
     users = User.get_all()
     for u in users:
         if u.username.startswith(USERPREFIX):
             u.delete()
Beispiel #2
0
 def test_getallAtLeastOne(self):
     users = User.get_all()
     self.assertGreater(len(users), 0)
Beispiel #3
0
def admin_api_users():
    users = User.get_all()
    return json.dumps([dict(user.__dict__) for user in users])