예제 #1
0
 def test_here_varname_no_value(self):
     with patch.dict('os.environ', (), clear=True):
         c = Configure.process_config({'z': '$HERE/car'})
         self.assertEqual(c['z'], '/car')
예제 #2
0
 def test_here_varname_override(self):
     with patch.dict('os.environ', {'HERE': 'there'}, clear=True):
         c = Configure.process_config({'configure.file_location': '/blah.file',
                                       'z': '$HERE/car'})
         self.assertEqual(c['z'], 'there/car')