Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/l/i/lib-rar-python-HEAD/librar/test_archive.py   lib-rar-python(Download)
    file_helper.create_file(opj(self.tempdir,"testfile")) # empty file is ok
    a.add_file(opj("testfile"))
    syscode = a.run()
    # should fail, because the target dir does not exist:
    self.assertNotEqual(syscode,0)
    a = archive.Archive(opj(base,"testarchive1.rar"),base)
    a.add_file("this-file-does-not-exist")
    syscode = a.run() 
    self.assertNotEqual(syscode,0)