Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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))