Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/tests/regressiontests/context_processors/tests.py b/tests/regressiontests/context_processors/tests.py
- index 31ecc83..c2f8c4b 100644
- --- a/tests/regressiontests/context_processors/tests.py
- +++ b/tests/regressiontests/context_processors/tests.py
- @@ -72,6 +72,13 @@ class AuthContextProcessorTests(TestCase):
- response = self.client.get('/auth_processor_messages/')
- self.assertContains(response, "Message 1")
- + def test_user_type(self):
- + self.client.login(username='super', password='secret')
- + response = self.client.get('/auth_processor_messages/')
- + self.assertEqual(str(type(response.context['user'])), "<class 'django.contrib.auth.models.User'>")
- +
- +
- +
- def test_user_attrs(self):
- """
- Test that ContextLazyObject wraps objects properly
Add Comment
Please, Sign In to add comment