Skip to content

Commit

Permalink
Check error message in response
Browse files Browse the repository at this point in the history
  • Loading branch information
ukanga committed Nov 25, 2024
1 parent e221c8b commit b215501
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ def test_post_submission_using_project_pk_exceptions(self):
auth = DigestAuth("bob", "bobbob")
request.META.update(auth(request.META, response))
response = self.view(request, project_pk=f"{self.project.pk}hello")
self.assertEqual(response.status_code, 400)
self.assertContains(response, "Invalid Project id.", status_code=400)
self.assertTrue(response.has_header("X-OpenRosa-Version"))
self.assertTrue(response.has_header("X-OpenRosa-Accept-Content-Length"))
self.assertTrue(response.has_header("Date"))
Expand Down

0 comments on commit b215501

Please sign in to comment.