def _add_choice_input(self):
        try:
            choice = self._choices.pop(0)
        except __HOLE__:
            choice = self.default_choice

        if choice == importer.action.APPLY:
            self.io.addinput(u'A')
        elif choice == importer.action.ASIS:
            self.io.addinput(u'U')
        elif choice == importer.action.ALBUMS:
            self.io.addinput(u'G')
        elif choice == importer.action.TRACKS:
            self.io.addinput(u'T')
        elif choice == importer.action.SKIP:
            self.io.addinput(u'S')
        elif isinstance(choice, int):
            self.io.addinput(u'M')
            self.io.addinput(unicode(choice))
            self._add_choice_input()
        else:
            raise Exception(u'Unknown choice %s' % choice)
dataset/ETHPy150Open beetbox/beets/test/test_ui_importer.py/TestTerminalImportSession._add_choice_input