예제 #1
0
 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)
예제 #2
0
 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)