def test_execmode_string(self): ucltip.global_config(execmode='string') self.assertEquals( 'apt-get install vim -t maverick', ucltip.CmdDispatcher('apt-get').install('vim', t='maverick'))
def tearDown(self): ucltip.__GLOBAL_CONFIG__ = self.default_config self.assertEquals(self.default_config, ucltip.global_config())
def test_execmode_list(self): ucltip.global_config(execmode='list') self.assertEquals(['ls', '-a', '-l'], ucltip.Cmd('ls')(a=True, l=True))
def setUp(self): self.default_config = ucltip.global_config()
def test_execmode_string(self): ucltip.global_config(execmode='string') self.assertEquals('apt-get install vim -t maverick', ucltip.CmdDispatcher('apt-get').install('vim',t='maverick'))
def test_execmode_list(self): ucltip.global_config(execmode='list') self.assertEquals(['ls','-a','-l'], ucltip.Cmd('ls')(a=True, l=True))