'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:
        with self.assertRaises(TypeError):
            SimpleView.as_view(**{method: 'value'})
    CustomizableView.as_view(parameter='value')
    with self.assertRaises(TypeError):
        CustomizableView.as_view(foobar='value')
