def test_upload_from_directory_without_subdir_with_ext(self): store = Store() final_count, final_success = store.upload_from_directory( os.path.dirname(__file__) + os.sep + "testdir", subdir=False, extension=".txt") self.assertEquals(2, final_count) self.assertEquals(0, final_success)
def test_upload_from_directory_with_subdir_no_commit(self): store = Store() final_count, final_success = store.upload_from_directory( os.path.dirname(__file__) + os.sep + "testdir", subdir=True, commit=False) self.assertEquals(5, final_count) self.assertEquals(0, final_success)
def test_upload_from_directory_exception_no_commit(self): store = Store() final_count, final_success = store.upload_from_directory( os.path.dirname(__file__) + os.sep + "testdir", subdir=False, extension=".txt", commit=False) self.assertEquals(0, final_count) self.assertEquals(0, final_success)