'Test that view arguments must be predefined on the class and can\'t
be named like a HTTP method.'

def test_invalid_keyword_argument(self):

    for method in SimpleView.http_method_names:
        kwargs = dict(((method, 'value'),))
        self.assertRaises(TypeError, SimpleView.as_view, **kwargs)
    CustomizableView.as_view(parameter='value')
    self.assertRaises(TypeError, CustomizableView.as_view, foobar='value')
