<s> import os <EOL> import sys <EOL> import hashlib <EOL> import random <EOL> import re <EOL> import shutil <EOL> import string <EOL> import tempfile <EOL> import time <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . abspath ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) ) ) ) <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . abspath ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) ) <EOL> import helper <EOL> from elodie . media . base import Base <EOL> from elodie . media . media import Media <EOL> from elodie . media . audio import Audio <EOL> from elodie . media . text import Text <EOL> from elodie . media . photo import Photo <EOL> from elodie . media . video import Video <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def test_set_album_from_folder_invalid_file ( ) : <EOL> temporary_folder , folder = helper . create_working_folder ( ) <EOL> base_file = helper . get_file ( '<STR_LIT>' ) <EOL> origin = '<STR_LIT>' % folder <EOL> shutil . copyfile ( base_file , origin ) <EOL> base = Base ( origin ) <EOL> status = base . set_album_from_folder ( ) <EOL> assert status == False , status <EOL> def test_get_class_by_file_without_extension ( ) : <EOL> base_file = helper . get_file ( '<STR_LIT>' ) <EOL> cls = Base . get_class_by_file ( base_file , [ Audio , Text , Photo , Video ] ) <EOL> assert cls is None , cls </s>
