Skip to content
Browse files

ticket4: pep8, fix test context

  • Loading branch information...
1 parent bfa1afd commit 512e72f8378b3395565e2480452bc759f2e1187e @andreysobol committed Mar 11, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 testsobol/mainapp/context_processor.py
  2. +2 −1 testsobol/mainapp/tests.py
View
3 testsobol/mainapp/context_processor.py
@@ -1,4 +1,5 @@
from django.conf import settings
+
def settings_context_processor(request):
- return {'settings':settings}
+ return {'settings': settings}
View
3 testsobol/mainapp/tests.py
@@ -45,11 +45,12 @@ def test(self):
class SettingsContextTest(TestCase):
-
+
def test(self):
page = self.client.get('')
self.assertEqual(page.status_code, 200)
self.assertTrue(page.context['settings'])
+ self.assertEqual(page.context['settings'].STATIC_URL, '/static/')
class NameUrlTest(TestCase):

0 comments on commit 512e72f

Please sign in to comment.
Something went wrong with that request. Please try again.