def create_test_user(self):
        result = post(self._test_users_url('installed=true'))
        if result.status_code != requests.codes.ok:
            raise UserCreationError(result.text)

        user_json = result.json()
        return TestUser.from_json(user_json)
 def test_users(self):
     all_users_request = get(self._test_users_url('limit=%d' % self.MAX_TEST_USERS))
     returned_json = all_users_request.json()
     users_json = returned_json['data']
     return [TestUser.from_json(user_json) for user_json in users_json]