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')
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')