def METHOD_NAME(self, *parts):
    if len(parts) == 1:
        pattern = parts[0]
    else:
        pattern = os.path.join(*parts)
    p = os.path.join(self.tempdir, pattern)
    res = METHOD_NAME.METHOD_NAME(p)
    self.assertEqual(list(METHOD_NAME.iglob(p)), res)
    ures = [fsdecode(x) for x in res]
    self.assertEqual(METHOD_NAME.METHOD_NAME(fsdecode(p)), ures)
    self.assertEqual(list(METHOD_NAME.iglob(fsdecode(p))), ures)
    return res