def test_api_view_incorrect_arguments(self):

        with self.assertRaises(AssertionError):
            @api_view('GET')
            def view(request):
                return Response()
If @api_view is missing arguments, we should raise an assertion.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_decorators.py/DecoratorTestCase.test_api_view_incorrect_arguments