mozilla-services/cornice — pull request #181 by elishowk (2013-09-05 15:14:24+00:00)
Title: testing that the (decorated) view is not callable before taking the klass param

Hi,
Found this bug while implementing CORS on an existing API. In this case, the view is the cors._preflight_view function that needs a request parameter. Just read the comment "(if the view argument isn't a callable)" to find that the add test was needed for all kind of situations...