Commit af311de8 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

snf_django: Fix bug in BaseAPITest

Include 202 in success responses.
parent afe5e702
......@@ -174,7 +174,7 @@ class BaseAPITest(TestCase):
return response
def assertSuccess(self, response):
self.assertTrue(response.status_code in [200, 203, 204])
self.assertTrue(response.status_code in [200, 202, 203, 204])
def assertFault(self, response, status_code, name):
self.assertEqual(response.status_code, status_code)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment