def test_env_vars(self, _): ''' test environment variables ''' with patch.dict(os.environ, ENV_VAR='hello'): self.assertEqual(Format('xyz {$ENV_VAR}'), 'xyz hello')