def test_get_all_statement_votes_failure(self): self.config.testing_securitypolicy(userid='', permissive=True) request = construct_dummy_request() response = get_all_argument_clicks(request) self.assertEqual(response.status_code, 400)
def test_get_all_statement_votes(self): self.config.testing_securitypolicy(userid='Tobias', permissive=True) request = construct_dummy_request() response = get_all_argument_clicks(request) self.assertIsNotNone(response) self.assertEqual(len(response), 0)