Example #1
0
 def an_admin_user_can_create_users(self):
     """Make sure the given client cannot perform admin actions.."""
     self.new_user = self.client.create_user(
         self.generate_new_user_config())
     # Make sure it actually logs in.
     self.new_user_client = mymodule.login({
         'username': self.new_user.username,
         'password': '******'
     })
 def successful_login(self):
     self.client = mymodule.login({
         'username':self.test_user.username, 'password':'******'})
 def an_admin_user_can_create_users(self):
     """Make sure the given client cannot perform admin actions.."""
     self.new_user = self.client.create_user(self.generate_new_user_config())
     # Make sure it actually logs in.
     self.new_user_client = mymodule.login({
         'username':self.new_user.username, 'password':'******'})
 def setUp(self):
     self.client = mymodule.login({"username": test_user.username, "password": "******"})
Example #5
0
 def successful_login(self):
     self.client = mymodule.login({
         'username': self.test_user.username,
         'password': '******'
     })
 def setUp(self):
     self.client = mymodule.login({
         'username': test_user.username,
         'password': '******'
     })
 def setUp(self):
     self.client = mymodule.login({
         'username':test_user.username, 'password':'******'})