def test_set_xsel(self): set_xsel(config, False) set_xsel(config, True) if sys.platform == 'linux2': self.assertEqual(None, config._conf['Global']['xsel'])
def test_set_xsel(self): Args = namedtuple('args', 'cfile, dbase, algo') args = Args(cfile='dummy.cfg', dbase='dummy.db', algo='AES') xsel, dbtype, configp = get_conf_options(args, 'True') set_xsel(configp, False) set_xsel(configp, True)