Example #1
0
 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'))
Example #2
0
 def tearDown(self):
     ucltip.__GLOBAL_CONFIG__ = self.default_config
     self.assertEquals(self.default_config, ucltip.global_config())
Example #3
0
 def test_execmode_list(self):
     ucltip.global_config(execmode='list')
     self.assertEquals(['ls', '-a', '-l'], ucltip.Cmd('ls')(a=True, l=True))
Example #4
0
 def setUp(self):
     self.default_config = ucltip.global_config()
Example #5
0
 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'))
Example #6
0
 def test_execmode_list(self):
     ucltip.global_config(execmode='list')
     self.assertEquals(['ls','-a','-l'], ucltip.Cmd('ls')(a=True, l=True))
Example #7
0
 def tearDown(self):
     ucltip.__GLOBAL_CONFIG__ = self.default_config
     self.assertEquals(self.default_config, ucltip.global_config())
Example #8
0
 def setUp(self):
     self.default_config = ucltip.global_config()