def testArgsMatchingMultipleAuto(self): from mr.developer.develop import Command self.assertRaises(SystemExit, Command(self.develop).get_packages, ['ba', 'zap'], auto_checkout=True)
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']))
def testSingleArgMatchingOneAuto(self): from mr.developer.develop import Command pkgs = Command(self.develop).get_packages(['ha'], auto_checkout=True) self.assertEquals(pkgs, set(['ham']))
def testArgsMatchingMultiple2(self): from mr.developer.develop import Command pkgs = Command(self.develop).get_packages(['ha', 'ba']) self.assertEquals(pkgs, set(['bar', 'baz', 'ham']))
def testArgsMatchingOne(self): from mr.developer.develop import Command pkgs = Command(self.develop).get_packages(['ha', 'zap']) self.assertEquals(pkgs, set(['ham']))
def testEmptyMatchListAuto(self): from mr.developer.develop import Command pkgs = Command(self.develop).get_packages([], auto_checkout=True) self.assertEquals(pkgs, set(['foo', 'ham']))
def testEmptyMatchList(self): from mr.developer.develop import Command pkgs = Command(self.develop).get_packages([]) self.assertEquals(pkgs, set(['foo', 'bar', 'baz', 'ham']))