aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_resources.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-08-13 23:04:08 +0000
committerPJ Eby <distutils-sig@python.org>2005-08-13 23:04:08 +0000
commit53cf2db1ed9a75fc4093cb81277510865e8a6db9 (patch)
tree02731d6a0687dd6d9962188e7f2024023fc98327 /setuptools/tests/test_resources.py
parentb8878fdb9dc2bfe8733a852547f15ec167476752 (diff)
downloadexternal_python_setuptools-53cf2db1ed9a75fc4093cb81277510865e8a6db9.tar.gz
external_python_setuptools-53cf2db1ed9a75fc4093cb81277510865e8a6db9.tar.bz2
external_python_setuptools-53cf2db1ed9a75fc4093cb81277510865e8a6db9.zip
Added docs for main EntryPoint APIs, and cleaned up the API itself a bit.
Also fixed a few bugs. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041192
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r--setuptools/tests/test_resources.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index 7ec9b980..ed651675 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -269,9 +269,9 @@ class EntryPointTests(TestCase):
"""
def testParseList(self):
- self.checkSubMap(EntryPoint.parse_list("xyz", self.submap_str))
- self.assertRaises(ValueError, EntryPoint.parse_list, "x a", "foo=bar")
- self.assertRaises(ValueError, EntryPoint.parse_list, "x",
+ self.checkSubMap(EntryPoint.parse_group("xyz", self.submap_str))
+ self.assertRaises(ValueError, EntryPoint.parse_group, "x a", "foo=bar")
+ self.assertRaises(ValueError, EntryPoint.parse_group, "x",
["foo=baz", "foo=bar"])
def testParseMap(self):
@@ -397,7 +397,7 @@ class ParseTests(TestCase):
"""
)
),
- [(None,["x"]), ("y",["z","a"]), ("b",["c"]), ("d",[]), ("q",["v"])]
+ [(None,["x"]), ("Y",["z","a"]), ("b",["c"]), ("d",[]), ("q",["v"])]
)
self.assertRaises(ValueError,list,pkg_resources.split_sections("[foo"))