'OPTIONS requests to views where `metadata_class = None` should raise
a MethodNotAllowed exception, which will result in an HTTP 405 response.'

def test_none_metadata(self):

    class ExampleView(views.APIView, ):
        metadata_class = None
    view = ExampleView.as_view()
    response = view(request=request)
    assert (response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED)
    assert (response.data == {u'detail': u'Method    "OPTIONS"    not    allowed.'})
