Exemplo n.º 1
0
 def test_get_all_posted_statements_failure(self):
     self.config.testing_securitypolicy(userid='', permissive=True)
     request = construct_dummy_request()
     response = get_all_posted_statements(request)
     self.assertEqual(response.status_code, 400)
Exemplo n.º 2
0
 def test_get_all_posted_statements(self):
     self.config.testing_securitypolicy(userid='Tobias', permissive=True)
     request = construct_dummy_request()
     response = get_all_posted_statements(request)
     self.assertIsNotNone(response)
     self.assertListEqual(response, [])