Fix a bug: use query_set instead of get_object

This commit is contained in:
PCoder 2018-01-02 00:45:02 +01:00
parent 5f73ab254a
commit e91169d3fe

View file

@ -494,4 +494,4 @@ class ViewTest(BaseTest):
view_obj.namespace, view_obj.config = get_app_instance(request)
with self.assertRaises(Http404):
view_obj.kwargs = {'category': 'unknown-category'}
category_obj = view_obj.get_object()
category_obj = view_obj.get_queryset()