'OPTIONS requests to views should return a valid 200 response.'

def test_metadata(self):

    class ExampleView(views.APIView, ):
        u'Example    view.'
        pass
    view = ExampleView.as_view()
    response = view(request=request)
    expected = {u'name': u'Example', u'description': u'Example    view.', u'renders': [u'application/json', u'text/html'], u'parses': [u'application/json', u'application/x-www-form-urlencoded', u'multipart/form-data']}
    assert (response.status_code == status.HTTP_200_OK)
    assert (response.data == expected)
