def setUp(self): try: os.mkdir('./testtarget') except OSError: pass options = namedtuple('options', ['mark_albums', 'copy_files', 'update_db']) options.mark_albums = False options.copy_files = False options.update_db = False args = [os.path.join(os.path.dirname(__file__), 'testtarget')] self._freshbeats = FreshBeats(options, args)