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