示例#1
0
文件: db_tests.py 项目: hbrunn/pwman3
    def test_set_xsel(self):
        set_xsel(config, False)

        set_xsel(config, True)
        if sys.platform == 'linux2':
            self.assertEqual(None, config._conf['Global']['xsel'])
示例#2
0
 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)
示例#3
0
 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)