コード例 #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
ファイル: test_init.py プロジェクト: gadeleon/pwman3
 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
ファイル: test_init.py プロジェクト: yujingjiangshui9/pwman3
 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)