Ticket #12060: 12060.diff

File 12060.diff, 795 bytes (added by Eric Holscher, 15 years ago)
  • tests/regressiontests/context_processors/tests.py

    diff --git a/tests/regressiontests/context_processors/tests.py b/tests/regressiontests/context_processors/tests.py
    index 31ecc83..c2f8c4b 100644
    a b class AuthContextProcessorTests(TestCase):  
    7272        response = self.client.get('/auth_processor_messages/')
    7373        self.assertContains(response, "Message 1")
    7474
     75 def test_user_type(self):
     76 self.client.login(username='super', password='secret')
     77 response = self.client.get('/auth_processor_messages/')
     78 self.assertEqual(str(type(response.context['user'])), "<class 'django.contrib.auth.models.User'>")
     79
     80
     81
    7582    def test_user_attrs(self):
    7683        """
    7784        Test that ContextLazyObject wraps objects properly
Back to Top