def METHOD_NAME(self):
    with self.assertRaises(ApiVersionException) as cm:
        self.request.META["HTTP_ACCEPT"] = "application/json;version=v2, application/json;version=v3"
        header_version, request_meta_accept = self.routing_middleware.extract_header_version(self.request)
    ex = cm.exception
    self.assertEquals(str(ex), "Too many versions were specified in the Accept header.")