Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/e/n/envmgr-0.0.3/envmgr/command.py   envmgr(Download)
    env = EnvConfParser(args.name, args.root)
 
    os.execvpe(args.command[0], args.command, env.parse())
 
if __name__ == '__main__':

src/e/n/envmgr-0.0.3/test/test_parser.py   envmgr(Download)
    def test_simple(self):
        p = EnvConfParser('simple', FIXTURES, {})
        r = p.parse()
        self.assertEqual(r, {'FOO': 'bar', 'BAR': 'baz', 'BAZ': 'bat'})
 
    def test_clear_alone(self):
        p = EnvConfParser('clear_alone', FIXTURES, {'FOO': 'bar'})
        r = p.parse()
    def test_clear_order(self):
        p = EnvConfParser('clear_order', FIXTURES, {})
        r = p.parse()
        self.assertEqual(r, {'BAR': 'baz'})
 
    def test_unset(self):
        p = EnvConfParser('unset', FIXTURES, {'FOO': 'bar', 'BAR': 'baz'})
        r = p.parse()
    def test_include(self):
        p = EnvConfParser('include', FIXTURES, {})
        r = p.parse()
        self.assertEqual(r, {'FOO': 'bar', 'BAR': 'baz'})