コード例 #1
0
    def test_file_executable(self):
        tun_conf_d = VpncTunnel.parse_configuration(self.cp, self.sec)
        t = VpncTunnel(**tun_conf_d)

        fp = t.get_split_tunnel_script_fp()
        isfile = os.path.isfile(fp)
        self.assertTrue(isfile and os.access(fp, os.X_OK))
コード例 #2
0
ファイル: test_vpnc.py プロジェクト: pombredanne/calabar
    def test_file_executable(self):
        tun_conf_d = VpncTunnel.parse_configuration(self.cp, self.sec)
        t = VpncTunnel(**tun_conf_d)

        fp = t.get_split_tunnel_script_fp()
        isfile = os.path.isfile(fp)
        self.assertTrue(isfile and os.access(fp, os.X_OK))
コード例 #3
0
    def test_file_exists(self):
        tun_conf_d = VpncTunnel.parse_configuration(self.cp, self.sec)
        t = VpncTunnel(**tun_conf_d)

        os.path.isfile(t.get_split_tunnel_script_fp())
コード例 #4
0
ファイル: test_vpnc.py プロジェクト: pombredanne/calabar
    def test_file_exists(self):
        tun_conf_d = VpncTunnel.parse_configuration(self.cp, self.sec)
        t = VpncTunnel(**tun_conf_d)

        os.path.isfile(t.get_split_tunnel_script_fp())