def test_moderator_has_control_access(self):
     self.client.login(username='******', password='******')
     access_result = has_control_access(self.moderator, [self.test_list])
     self.assertTrue(access_result)
     self.client.logout()
 def test_user_not_has_control_access(self):
     self.client.login(username='******', password='******')
     access_result = has_control_access(self.user, [self.test_list])
     self.assertFalse(access_result)
     self.client.logout()
 def test_superuser_has_control_access(self):
     self.client.login(username='******', password='******')
     access_result = has_control_access(self.su, [self.test_list])
     self.assertTrue(access_result)
     self.client.logout()
 def test_moderator_has_control_access(self):
     self.client.login(username='******', password='******')
     access_result = has_control_access(self.moderator, [self.test_list])
     self.assertTrue(access_result)
     self.client.logout()
 def test_user_not_has_control_access(self):
     self.client.login(username='******', password='******')
     access_result = has_control_access(self.user, [self.test_list])
     self.assertFalse(access_result)
     self.client.logout()
 def test_superuser_has_control_access(self):
     self.client.login(username='******', password='******')
     access_result = has_control_access(self.su, [self.test_list])
     self.assertTrue(access_result)
     self.client.logout()