Commit b595fba4 authored by Dionysis Grigoropoulos's avatar Dionysis Grigoropoulos
Browse files

django-lib: Add assertConflict (409) in testing.py

parent 9952325a
......@@ -243,6 +243,9 @@ class BaseAPITest(TestCase):
def assertItemNotFound(self, response):
self.assertFault(response, 404, 'itemNotFound')
def assertConflict(self, response):
self.assertFault(response, 409, "conflict")
def assertMethodNotAllowed(self, response):
self.assertFault(response, 400, 'badRequest')
try:
......
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