aboutsummaryrefslogtreecommitdiff
path: root/python/dep_spec_TEST.py
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-15 14:13:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-15 14:13:39 +0000
commit169e91b611f2a12b89467e03abb4c76ddbe3fe7e (patch)
tree2663836792a36cb4b8c05305b3edbdb247edd07b /python/dep_spec_TEST.py
parent7e125b4740d8bb50aa06b97d1dc070dfbce8bb3a (diff)
downloadpaludis-169e91b611f2a12b89467e03abb4c76ddbe3fe7e.tar.gz
paludis-169e91b611f2a12b89467e03abb4c76ddbe3fe7e.tar.xz
Replace PackageDepSpec::use_requirements with a more general PackageDepSpec::additional_requirements.
Diffstat (limited to 'python/dep_spec_TEST.py')
-rwxr-xr-xpython/dep_spec_TEST.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/python/dep_spec_TEST.py b/python/dep_spec_TEST.py
index b16f68d5d..d4dc53b14 100755
--- a/python/dep_spec_TEST.py
+++ b/python/dep_spec_TEST.py
@@ -79,16 +79,16 @@ class TestCase_1_DepSpecs(unittest.TestCase):
self.get_depspecs()
self.assertEquals(self.pds.version_requirements_mode, VersionRequirementsMode.AND)
- def test_09_use_requirements(self):
- spec = parse_user_package_dep_spec("foo/monkey[foo]", UserPackageDepSpecOptions())
- ur = iter(spec.use_requirements).next()
- self.assert_(isinstance(ur, EnabledUseRequirement))
+### def test_09_additional_requirements(self):
+### spec = parse_user_package_dep_spec("foo/monkey[foo]", UserPackageDepSpecOptions())
+### ur = iter(spec.additional_requirements).next()
+### self.assert_(isinstance(ur, EnabledUseRequirement))
- def test_10_without_use_requirements(self):
+ def test_10_without_additional_requirements(self):
spec = parse_user_package_dep_spec("foo/monkey[foo]", UserPackageDepSpecOptions())
- pds = spec.without_use_requirements()
- self.assertEquals(pds.use_requirements, None)
- self.assertEquals(str(pds), "foo/monkey")
+ pds = spec.without_additional_requirements()
+### self.assertEquals(pds.additional_requirements, None)
+### self.assertEquals(str(pds), "foo/monkey")
def test_11_name(self):
self.get_depspecs()