コード例 #1
0
ファイル: testcvs.py プロジェクト: barmalei/primus
    def test_svn_import(self):
        def na(): 
            d = ExportSVNRepo("tmp/cvs", None)
            d.what_it_does()
        self.assertRaises(BaseException, na)

        def na(): 
            d = ExportSVNRepo("tmp/cvs", '')
            d.what_it_does()
        self.assertRaises(BaseException, na)

        d = ExportSVNRepo("tmp/cvs", "svn+ssh://[email protected]/scratch/svn/primus/trunk/lib/primus/test")
        try:
            d.build()
            self.assertTrue(os.path.exists(d.fullpath()))
        finally:
            d.cleanup()
            self.assertTrue(not os.path.exists(d.fullpath()))
コード例 #2
0
ファイル: testcvs.py プロジェクト: sanyaade-teachings/primus
    def test_svn_import(self):
        def na():
            d = ExportSVNRepo("tmp/cvs", None)
            d.what_it_does()

        self.assertRaises(BaseException, na)

        def na():
            d = ExportSVNRepo("tmp/cvs", '')
            d.what_it_does()

        self.assertRaises(BaseException, na)

        d = ExportSVNRepo(
            "tmp/cvs",
            "svn+ssh://[email protected]/scratch/svn/primus/trunk/lib/primus/test"
        )
        try:
            d.build()
            self.assertTrue(os.path.exists(d.fullpath()))
        finally:
            d.cleanup()
            self.assertTrue(not os.path.exists(d.fullpath()))
コード例 #3
0
ファイル: testcvs.py プロジェクト: barmalei/primus
 def na(): 
     d = ExportSVNRepo("tmp/cvs", '')
     d.what_it_does()
コード例 #4
0
ファイル: testcvs.py プロジェクト: sanyaade-teachings/primus
 def na():
     d = ExportSVNRepo("tmp/cvs", '')
     d.what_it_does()