def test_create_users(self): with testing.testConfig() as config: config.add_route('login', '/login') config.add_route('signup', '/signup') print(signup(self.request)) userc= {} userc['cpu_hours'] = 12345 userc['username'] = '******' self.request.userdb.user_cache.insert(userc)
def test_create_users(self): with testing.testConfig() as config: config.add_route('login', '/login') config.add_route('signup', '/signup') print(signup(self.request)) userc = {} userc['cpu_hours'] = 12345 userc['username'] = '******' self.request.userdb.user_cache.insert(userc)
def test_create_user(self): request = testing.DummyRequest(userdb=self.rundb.userdb, method='POST', remote_addr="127.0.0.1", params={ 'username': '******', 'password': '******', 'password2': 'secret', 'email': '*****@*****.**', }) response = signup(request) self.assertTrue('The resource was found at', response)
def test_create_user(self): request = testing.DummyRequest( userdb=self.rundb.userdb, method="POST", remote_addr="127.0.0.1", params={ "username": "******", "password": "******", "password2": "secret", "email": "*****@*****.**", }, ) response = signup(request) self.assertTrue("The resource was found at", response)
def test_create_users(self): with testing.testConfig() as config: config.add_route('login', '/login') config.add_route('signup', '/signup') print(signup(self.request))