          """
          request = factory.get('/', HTTP_ACCEPT='text/html')
          view = ExampleView().as_view()
          response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
  
  
  class InclusiveFilterBackend(object):
      def filter_queryset(self, request, queryset, view):
          return queryset.filter(text='foo')
 
</s> remove         self.assertIn(expected_error, response.rendered_content.decode('utf-8'))
 </s> add         assert expected_error in response.rendered_content.decode('utf-8') </s> remove         self.assertEqual(updated.text, 'foobar')
 </s> add         assert updated.text == 'foobar' </s> remove         self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(response.data, self.data[0])
 </s> add         assert response.status_code == status.HTTP_200_OK
        assert response.data == self.data[0] </s> remove         self.assertEqual(created.content, 'foobar')
 </s> add         assert created.content == 'foobar' </s> remove         self.assertIn(expected_error, response.rendered_content.decode('utf-8'))
 </s> add         assert expected_error in response.rendered_content.decode('utf-8')
        assert response.status_code == status.HTTP_200_OK
          """
          request = factory.get('/', HTTP_ACCEPT='text/html')
          view = ExampleView().as_view()
          response = view(request).render()
        assert response.status_code == status.HTTP_200_OK
  
  
  class InclusiveFilterBackend(object):
      def filter_queryset(self, request, queryset, view):
          return queryset.filter(text='foo')
keep keep keep keep replace keep keep keep keep keep
 converted test asserts of generics-test to pytest 
tests/test_generics.py