Created
June 4, 2013 15:51
-
-
Save dmitryTsatsarin/5707024 to your computer and use it in GitHub Desktop.
override_settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test import TestCase | |
from django.conf import settings | |
class SimpleTest(TestCase): | |
def test_basic_addition(self): | |
""" | |
Tests that 1 + 1 always equals 2. | |
""" | |
with self.settings(NAME='Tim'): | |
self.assertEqual(settings.NAME, 'Tim') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment