def testCollectUnique(self): self.choices.update(['coll1', 'coll2', 'coll3']) v = config_collect_values('BASE', 'collect', 'test', unique=False) self.assertEqual(v, ['set a', 'set a', 'set d']) v = config_collect_values('BASE', 'collect', 'test', unique=True) self.assertEqual(v, ['set a', 'set d'])
def testCollectSimple(self): v = config_collect_values('BASE', 'collect', 'test') self.assertEqual(v, ['set a', 'set d'])