def test_print_tracks_output(self):
        self.matcher.matching = AutotagStub.BAD

        with capture_stdout() as output:
            with control_stdin('\n'.join(['p', 's'])):
                # Print tracks; Skip
                self.importer.run()

        # Manually build the string for comparing the output.
        tracklist = (u'Print tracks? '
                     u'01. Tag Title 1 - Tag Artist (0:01)\n'
                     u'02. Tag Title 2 - Tag Artist (0:01)')
        self.assertIn(tracklist, output.getvalue())
Test the output of the "print tracks" choice.
dataset/ETHPy150Open beetbox/beets/test/test_mbsubmit.py/MBSubmitPluginTest.test_print_tracks_output