def METHOD_NAME(self):
    # It is really quite important what order we return the
    # files. They should be in the order that was provided,
    # so that we can control the order of load (for instance,
    # this can be used with PP files to ensure that there is
    # a surface reference).
    patterns = [
        os.path.join(self.tmpdir, "a.*"),
        os.path.join(self.tmpdir, "b.*"),
    ]
    expected = [
        os.path.join(self.tmpdir, fname) for fname in ["a.foo", "b.txt"]
    ]
    result = iio.expand_filespecs(patterns)
    self.assertEqual(result, expected)
    result = iio.expand_filespecs(patterns[::-1])
    self.assertEqual(result, expected[::-1])