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