mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
@@ -136,9 +136,8 @@ class ViewTest(unittest.TestCase):
|
||||
"""
|
||||
# Check each of the allowed method names
|
||||
for method in SimpleView.http_method_names:
|
||||
kwargs = dict(((method, "value"),))
|
||||
with self.assertRaises(TypeError):
|
||||
SimpleView.as_view(**kwargs)
|
||||
SimpleView.as_view(**{method: 'value'})
|
||||
|
||||
# Check the case view argument is ok if predefined on the class...
|
||||
CustomizableView.as_view(parameter="value")
|
||||
|
||||
Reference in New Issue
Block a user