Esempio n. 1
0
 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)
Esempio n. 2
0
 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)