diff --git a/tests/test_generics.py b/tests/test_generics.py index c0ff1c5c4..b3e68277f 100644 --- a/tests/test_generics.py +++ b/tests/test_generics.py @@ -522,7 +522,8 @@ class TestFilterBackendAppliedToViews(TestCase): request = factory.get('/1') response = instance_view(request, pk=1).render() assert response.status_code == status.HTTP_404_NOT_FOUND - assert response.data == {'detail': 'Not found.'} + assert (response.data == {'detail': 'Not found.'} or + response.data == {'detail': 'No BasicModel matches the given query.'}) def test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it(self): """