diff --git a/openwisp_monitoring/device/tests/test_models.py b/openwisp_monitoring/device/tests/test_models.py index 1114eb56..99af76cd 100644 --- a/openwisp_monitoring/device/tests/test_models.py +++ b/openwisp_monitoring/device/tests/test_models.py @@ -280,7 +280,7 @@ def test_validate_neighbors_data(self): dd.validate_data() except ValidationError as e: self.assertIn('Invalid data in', e.message) - self.assertIn("is not a 'ipv4'", e.message) + self.assertIn("is not valid under any of the given schemas", e.message) else: self.fail('ValidationError not raised') @@ -397,7 +397,7 @@ def test_bad_address_fail(self): dd.validate_data() except ValidationError as e: self.assertIn('Invalid data in', e.message) - self.assertIn("'123\' is not a \'ipv4\'", e.message) + self.assertIn("is not valid under any of the given schemas", e.message) else: self.fail('ValidationError not raised') @@ -410,7 +410,7 @@ def test_bad_dhcp_lease_fail(self): dd.validate_data() except ValidationError as e: self.assertIn('Invalid data in', e.message) - self.assertIn("'123\' is not a \'ipv4\'", e.message) + self.assertIn("is not valid under any of the given schemas", e.message) else: self.fail('ValidationError not raised')