def testDependenciesAdditionPositive(self): modules = configurator._parse_args('validate-config', '--module=a').modules modulesNames = [m.name for m in modules] self.assertTrue('a' in modulesNames) self.assertTrue('b' in modulesNames) self.assertTrue('c' in modulesNames)
def testNormalDependencies(self): modules = configurator._parse_args('validate-config').modules # make sure this is indeed a topological sort. before_m = set() for m in modules: for n in m.requires: self.assertIn(n, before_m) before_m.add(m.name)
def testDependenciesAdditionPositive(self): modules = configurator._parse_args( 'validate-config', '--module=a' ).modules modulesNames = [m.name for m in modules] self.assertTrue('a' in modulesNames) self.assertTrue('b' in modulesNames) self.assertTrue('c' in modulesNames)
def testNoDependencies(self): configurator._parse_args('validate-config').modules