def __assert_that_files_has_been_moved(self, source_paths): for source_path in source_paths: file_name = os.path.basename(source_path) destination_path = self.TEST_FILE_NAMES_DESTINATION_DIRECTORY_PATH + file_name file_is_in_new_path = file_handler.check_file_existance(destination_path) self.assertTrue(file_is_in_new_path) file_is_in_source_path = file_handler.check_file_existance(source_path) self.assertFalse(file_is_in_source_path)
def __assert_file_not_in_old_path(self): file_is_in_old_path = file_handler.check_file_existance(self.TEST_FILE_SOURCE_PATH) self.assertFalse(file_is_in_old_path)
def __assert_file_in_new_path(self): destination_path = self.TEST_DESTINATION_ROOT_FOLDER + '/halt and catch fire/Season 2' + self.TEST_FILE_NAME file_is_in_new_path = file_handler.check_file_existance(destination_path) self.assertTrue(file_is_in_new_path)