Ejemplo n.º 1
0
 def testArgsMatchingMultipleAuto(self):
     from mr.developer.develop import Command
     self.assertRaises(SystemExit,
                       Command(self.develop).get_packages, ['ba', 'zap'],
                       auto_checkout=True)
Ejemplo n.º 2
0
 def testArgsMatchingMultiple2Auto(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages(['ha', 'ba'],
                                               auto_checkout=True)
     self.assertEquals(pkgs, set(['ham']))
Ejemplo n.º 3
0
 def testSingleArgMatchingOneAuto(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages(['ha'], auto_checkout=True)
     self.assertEquals(pkgs, set(['ham']))
Ejemplo n.º 4
0
 def testArgsMatchingMultiple2(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages(['ha', 'ba'])
     self.assertEquals(pkgs, set(['bar', 'baz', 'ham']))
Ejemplo n.º 5
0
 def testArgsMatchingOne(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages(['ha', 'zap'])
     self.assertEquals(pkgs, set(['ham']))
Ejemplo n.º 6
0
 def testEmptyMatchListAuto(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages([], auto_checkout=True)
     self.assertEquals(pkgs, set(['foo', 'ham']))
Ejemplo n.º 7
0
 def testEmptyMatchList(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages([])
     self.assertEquals(pkgs, set(['foo', 'bar', 'baz', 'ham']))