diff options
| author | Mads Jensen <mje@inducks.org> | 2017-09-25 20:50:11 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-26 19:42:50 -0400 |
| commit | 4803834aaad99a92e65b5c70ccdbcf4d07ea9b03 (patch) | |
| tree | 6a3862bb74dada803473e7e1b4decef6f547e83d /tests/auth_tests/test_context_processors.py | |
| parent | 98706bb35e7de0e445cc336f669919047bf46b75 (diff) | |
Added a test for PermWrapper.__iter__().
Diffstat (limited to 'tests/auth_tests/test_context_processors.py')
| -rw-r--r-- | tests/auth_tests/test_context_processors.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auth_tests/test_context_processors.py b/tests/auth_tests/test_context_processors.py index 4c4652cd1b..d9cd679a6e 100644 --- a/tests/auth_tests/test_context_processors.py +++ b/tests/auth_tests/test_context_processors.py @@ -56,6 +56,10 @@ class PermWrapperTests(SimpleTestCase): with self.assertRaises(TypeError): 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) class AuthContextProcessorTests(TestCase): |
