Skip to content

Commit

Permalink
ticket4: pep8, fix test context
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysobol committed Mar 11, 2012
1 parent bfa1afd commit 512e72f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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}
3 changes: 2 additions & 1 deletion testsobol/mainapp/tests.py
Expand Up @@ -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):
Expand Down

0 comments on commit 512e72f

Please sign in to comment.