示例#1
0
    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
    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
 def na(): 
     d = ExportSVNRepo("tmp/cvs", '')
     d.what_it_does()
示例#4
0
 def na():
     d = ExportSVNRepo("tmp/cvs", '')
     d.what_it_does()