瀏覽代碼

Fixed test from #3211 follow-up work

Jeremy Stretch 7 年之前
父節點
當前提交
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'))
         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):