test_cps = ['sys-apps/portage','virtual/portage']
test_versions = ['1.0', '1.0-r1','2.3_p4','1.0_alpha57']
test_slots = [ None, '1','gentoo-sources-2.6.17','spankywashere']
-test_usedeps = ['foo','-bar', ['foo','bar'],['foo','-bar'] ]
+test_usedeps = ['foo','-bar', ('foo','bar'),
+ ('foo','-bar'), ('foo?', '-bar?') ]
cpv += version
if slot:
cpv += ":" + slot
- if isinstance( use, list ):
+ if isinstance(use, tuple):
for u in use:
cpv = cpv + "[" + u + "]"
self.assertEqual( dep_getusedeps(
else:
if len(use):
self.assertEqual( dep_getusedeps(
- cpv + "[" + use + "]" ), [use] )
+ cpv + "[" + use + "]" ), (use,) )
else:
self.assertEqual( dep_getusedeps(
- cpv + "[" + use + "]" ), [] )
+ cpv + "[" + use + "]" ), () )