def METHOD_NAME(self):
    with self.assertRaises(IOError) as err:
        iio.expand_filespecs(
            [
                os.path.join(self.tmpdir, "does_not_exist.txt"),
                os.path.join(self.tmpdir, "*"),
            ]
        )
    expected = (
        textwrap.dedent(
            """
        One or more of the files specified did not exist:
            * "{0}/does_not_exist.txt" didn\'t match any files
            - "{0}/*" matched 2 file(s)
        """
        )
        .strip()
        .format(self.tmpdir)
    )
    self.assertMultiLineEqual(str(err.exception), expected)