def setUp(self):
if os.path.exists(temp_storage_dir):<EOL><INDENT>shutil.rmtree(temp_storage_dir)<EOL><DEDENT>os.mkdir(temp_storage_dir)<EOL>file_path1 = os.path.join(os.path.dirname(__file__), '<STR_LIT>')<EOL>self.file1 = self.File(open(file_path1, '<STR_LIT:rb>'), name='<STR_LIT>')<EOL>file_path2 = os.path.join(os.path.dirname(__file__), '<STR_LIT>')<EOL>self.file2 = self.File(open(file_path2, '<STR_LIT:rb>'), name='<STR_LIT>')<EOL>
Creates a pristine temp directory (or deletes and recreates if it
already exists) that the model uses as its storage directory.

Sets up two ImageFile instances for use in tests.