1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

utilities: move protectederror handling to modelviewset

This commit is contained in:
hellerve
2019-05-28 21:11:23 +02:00
parent cc87d99017
commit 2c7bad9fff
3 changed files with 19 additions and 9 deletions

View File

@@ -972,7 +972,7 @@ class VLANTest(APITestCase):
response = self.client.delete(url, **self.header)
# can't use assertHttpStatus here because we don't have response.data
self.assertEqual(response.status_code, 403)
self.assertEqual(response.status_code, 409)
content = json.loads(response.content.decode('utf-8'))
self.assertIn('detail', content)