Skip to content

Instantly share code, notes, and snippets.

View ericholscher's full-sized avatar
🌲
Vacation until April 22

Eric Holscher ericholscher

🌲
Vacation until April 22
View GitHub Profile
@ericholscher
ericholscher / diff_settings.py
Created November 10, 2009 21:45
diff_settings.py
import os
import sys
import difflib
from pprint import pformat
settings1 = sys.argv[1]
settings2 = sys.argv[2]
def get_diff_msg(first, second, fromfile='First', tofile='Second'):
-> python pip.py install --upgrade --test wsgiref
Downloading/unpacking wsgiref
Downloading wsgiref-0.1.2.zip
Running setup.py egg_info for package wsgiref
Testing collected packages: wsgiref
Running setup.py test for wsgiref
running test
running egg_info
writing wsgiref.egg-info/PKG-INFO
writing top-level names to wsgiref.egg-info/top_level.txt
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')