Преглед изворни кода

Fixed test from #3211 follow-up work

Jeremy Stretch пре 6 година
родитељ
комит
0804c1acbd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      netbox/ipam/tests/test_api.py

+ 1 - 1
netbox/ipam/tests/test_api.py

@@ -976,7 +976,7 @@ class VLANTest(APITestCase):
 
 
         content = json.loads(response.content.decode('utf-8'))
         content = json.loads(response.content.decode('utf-8'))
         self.assertIn('detail', content)
         self.assertIn('detail', content)
-        self.assertTrue(content['detail'].startswith('You tried deleting a model that is protected by:'))
+        self.assertTrue(content['detail'].startswith('Unable to delete object.'))
 
 
 
 
 class ServiceTest(APITestCase):
 class ServiceTest(APITestCase):