[Python-checkins] python/nondist/sandbox/setuptools/setuptools/tests test_resources.py, 1.21, 1.22
pje@users.sourceforge.net
pje at users.sourceforge.net
Sun Aug 14 01:04:19 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14936/setuptools/tests
Modified Files:
test_resources.py
Log Message:
Added docs for main EntryPoint APIs, and cleaned up the API itself a bit.
Also fixed a few bugs.
Index: test_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/tests/test_resources.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- test_resources.py 7 Aug 2005 01:03:36 -0000 1.21
+++ test_resources.py 13 Aug 2005 23:04:08 -0000 1.22
@@ -269,9 +269,9 @@
"""
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 @@
"""
)
),
- [(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"))
More information about the Python-checkins
mailing list