Fix test_get_instance_view_filters_out_name_with_filter_backend response message check

This commit is contained in:
Jure Erznožnik 2018-08-20 15:14:15 +02:00
parent 1d48aaa8b9
commit 9c7d5c265a

View File

@ -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):
"""