aboutsummaryrefslogtreecommitdiff
path: root/python/choices_TEST.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/choices_TEST.py')
-rw-r--r--python/choices_TEST.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/choices_TEST.py b/python/choices_TEST.py
index ad69d1f64..7e9f9476f 100644
--- a/python/choices_TEST.py
+++ b/python/choices_TEST.py
@@ -33,7 +33,7 @@ class TestCase_01_Choices(unittest.TestCase):
def setUp(self):
self.e = NoConfigEnvironment(repo_path, "/var/empty")
self.pid = iter(self.e.fetch_repository("testrepo").package_ids("foo/bar", [])).next()
- self.choices = self.pid.find_metadata("PALUDIS_CHOICES").value()
+ self.choices = self.pid.find_metadata("PALUDIS_CHOICES").parse_value()
def test_01_choices(self):
self.assert_(isinstance(self.choices, Choices), self.choices.__class__)
@@ -59,7 +59,7 @@ class TestCase_02_Choice(unittest.TestCase):
def setUp(self):
self.e = NoConfigEnvironment(repo_path, "/var/empty")
self.pid = iter(self.e.fetch_repository("testrepo").package_ids("foo/bar", [])).next()
- self.choices = self.pid.find_metadata("PALUDIS_CHOICES").value()
+ self.choices = self.pid.find_metadata("PALUDIS_CHOICES").parse_value()
self.use = None
self.linguas = None
for f in self.choices:
@@ -108,7 +108,7 @@ class TestCase_03_ChoiceValue(unittest.TestCase):
def setUp(self):
self.e = NoConfigEnvironment(repo_path, "/var/empty")
self.pid = iter(self.e.fetch_repository("testrepo").package_ids("foo/bar", [])).next()
- self.choices = self.pid.find_metadata("PALUDIS_CHOICES").value()
+ self.choices = self.pid.find_metadata("PALUDIS_CHOICES").parse_value()
self.use_testflag = self.choices.find_by_name_with_prefix("testflag")
self.linguas_en = self.choices.find_by_name_with_prefix("linguas_en")