Guest User

Untitled

a guest
Apr 18th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git a/tests/regressiontests/context_processors/tests.py b/tests/regressiontests/context_processors/tests.py
  2. index 31ecc83..c2f8c4b 100644
  3. --- a/tests/regressiontests/context_processors/tests.py
  4. +++ b/tests/regressiontests/context_processors/tests.py
  5. @@ -72,6 +72,13 @@ class AuthContextProcessorTests(TestCase):
  6. response = self.client.get('/auth_processor_messages/')
  7. self.assertContains(response, "Message 1")
  8.  
  9. + def test_user_type(self):
  10. + self.client.login(username='super', password='secret')
  11. + response = self.client.get('/auth_processor_messages/')
  12. + self.assertEqual(str(type(response.context['user'])), "<class 'django.contrib.auth.models.User'>")
  13. +
  14. +
  15. +
  16. def test_user_attrs(self):
  17. """
  18. Test that ContextLazyObject wraps objects properly
Add Comment
Please, Sign In to add comment