Exemple #1
0
 def test_disable(self):
     conf = Conf('primtux')
     lines = startup.split('\n')
     lines = [line + '\n' for line in lines]
     r = conf.load(lines[:-1])
     soft = conf.get_soft('rox -p 1')
     conf.disable(soft)
     soft = conf.get_soft('lxpanel')
     conf.disable(soft)
     assert str(conf) == after_disable
Exemple #2
0
 def test_enable(self):
     conf = Conf('primtux')
     lines = startup.split('\n')
     lines = [line + '\n' for line in lines]
     r = conf.load(lines[:-1])
     soft = conf.get_soft('/usr/local/bin/primtux/handymenu-mini')
     conf.enable(soft)
     assert str(conf) == after_enable
Exemple #3
0
 def test_remove(self):
     conf = Conf('primtux')
     lines = startup.split('\n')
     lines = [line + '\n' for line in lines]
     r = conf.load(lines[:-1])
     has_removed = conf.remove(conf.get_soft('/usr/local/bin/primtux/handymenu-maxi'))
     assert has_removed == True
     assert str(conf) == startup_delete