#NEWLINE# @ unittest . skipIf ( ( 'TOXENV' in os . environ ) , 'travis (randomly) fails this test' ) #NEWLINE# def test_manager_get_settings_known_none( self ) : #NEWLINE# #INDENT# '\n        FAIL: test_manager_get_settings_known_none (tests.configuration.tests.ModelTests)\n        ----------------------------------------------------------------------\n        Traceback (most recent call last):\n        File "/home/travis/build/django-bmf/django-bmf/tests/configuration/tests.py", line 44, in test_manager_get_settings_known_none\n        value = Configuration.get_setting(\'test\', \'test5\')\n        File "/home/travis/build/django-bmf/django-bmf/.tox/py34-1.8/lib/python3.4/site-packages/django/test/testcases.py", line 110, in __exit__\n        query[\'sql\'] for query in self.captured_queries\n        AssertionError: 0 != 1 : 0 queries executed, 1 expected\n        ' #NEWLINE# obj = Configuration ( app_label = 'test' , field_name = 'test5' ) #NEWLINE# obj . save ( ) #NEWLINE# site . register_settings ( 'test' , { #NEWLINE# #INDENT# 'test5' : forms . CharField ( max_length = 5 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# value = Configuration . get_setting ( 'test' , 'test5' ) #NEWLINE# #UNINDENT# self . assertEqual ( self , None , 'Load a known setting value from database' )