예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 def test_create_users(self):
     with testing.testConfig() as config:
         config.add_route('login', '/login')
         config.add_route('signup', '/signup')
         print(signup(self.request))