Пример #1
0
 def testArgsMatchingMultipleAuto(self):
     from mr.developer.develop import Command
     self.assertRaises(SystemExit,
                       Command(self.develop).get_packages, ['ba', 'zap'],
                       auto_checkout=True)
Пример #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']))
Пример #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']))
Пример #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']))
Пример #5
0
 def testArgsMatchingOne(self):
     from mr.developer.develop import Command
     pkgs = Command(self.develop).get_packages(['ha', 'zap'])
     self.assertEquals(pkgs, set(['ham']))
Пример #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']))
Пример #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']))