Added a test for PermWrapper.__iter__().
This commit is contained in:
parent
98706bb35e
commit
4803834aaa
|
@ -56,6 +56,10 @@ class PermWrapperTests(SimpleTestCase):
|
||||||
with self.assertRaises(TypeError):
|
with self.assertRaises(TypeError):
|
||||||
self.EQLimiterObject() in pldict
|
self.EQLimiterObject() in pldict
|
||||||
|
|
||||||
|
def test_iter(self):
|
||||||
|
with self.assertRaisesMessage(TypeError, 'PermWrapper is not iterable.'):
|
||||||
|
iter(PermWrapper(MockUser()))
|
||||||
|
|
||||||
|
|
||||||
@override_settings(ROOT_URLCONF='auth_tests.urls', TEMPLATES=AUTH_TEMPLATES)
|
@override_settings(ROOT_URLCONF='auth_tests.urls', TEMPLATES=AUTH_TEMPLATES)
|
||||||
class AuthContextProcessorTests(TestCase):
|
class AuthContextProcessorTests(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue