示例#1
0
 def assertGlob(self, expected, paths, **kw):
     """
     Assert that L{renamer.util.globArguments}C{(paths, **kw)} returns a
     result equal to C{expected}.
     """
     paths = [self.path.child(p).path for p in paths]
     res = util.globArguments(paths, **kw)
     self.assertEquals(
         sorted(expected), sorted(FilePath(v).basename() for v in res))
示例#2
0
 def parseArgs(self, *args):
     args = (self.decodeCommandLine(arg) for arg in args)
     if self['glob']:
         args = util.globArguments(args)
     self.args = (FilePath(arg) for arg in args)