def test_envs(self): opts = {'file_roots': copy.copy(self.opts['file_roots'])} opts['file_roots'][UNICODE_ENVNAME] = opts['file_roots']['base'] with patch.dict(roots.__opts__, opts): ret = roots.envs() self.assertIn('base', ret) self.assertIn(UNICODE_ENVNAME, ret)
def test_envs(self): opts = {"file_roots": copy.copy(self.opts["file_roots"])} opts["file_roots"][UNICODE_ENVNAME] = opts["file_roots"]["base"] with patch.dict(roots.__opts__, opts): ret = roots.envs() self.assertIn("base", ret) self.assertIn(UNICODE_ENVNAME, ret)