'Creates a directory with media files to import.
Sets ``self.import_dir`` to the path of the directory. Also sets
``self.import_media`` to a list :class:`MediaFile` for all the files in
the directory.
The directory has following layout
the_album/
track_1.mp3
track_2.mp3
track_3.mp3
:param count:  Number of files to create'

def _create_import_dir(self, count=3):

    self.import_dir = os.path.join(self.temp_dir, 'testsrcdir')
    if os.path.isdir(self.import_dir):
        shutil.rmtree(self.import_dir)
    album_path = os.path.join(self.import_dir, 'the_album')
    os.makedirs(album_path)
    resource_path = os.path.join(_common.RSRC, 'full.mp3')
    metadata = {'artist': u'Tag    Artist', 'album': u'Tag    Album', 'albumartist': None, 'mb_trackid': None, 'mb_albumid': None, 'comp': None}
    self.media_files = []
    for i in range(count):
        medium_path = os.path.join(album_path, bytestring_path(('track_%d.mp3' % (i + 1))))
        shutil.copy(resource_path, medium_path)
        medium = MediaFile(medium_path)
        metadata['track'] = (i + 1)
        metadata['title'] = (u'Tag    Title    %d' % (i + 1))
        for attr in metadata:
            setattr(medium, attr, metadata[attr])
        medium.save()
        self.media_files.append(medium)
    self.import_media = self.media_files
