diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-07-25 03:12:51 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-07-25 03:12:51 +0000 |
| commit | 54bb8e4003534a9af54028ef719eda5ba6088bac (patch) | |
| tree | bdae8c0810e7a1a4ecf7e93669cbba45f0de9fcb /setuptools/tests/test_resources.py | |
| parent | 1c40632b88d76aea178e751483645ec3d32c81d9 (diff) | |
| download | python-setuptools-git-54bb8e4003534a9af54028ef719eda5ba6088bac.tar.gz | |
Misc. bug fixes and doc additions. Add 'iter_entry_points()' API.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041153
Diffstat (limited to 'setuptools/tests/test_resources.py')
| -rw-r--r-- | setuptools/tests/test_resources.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index 5392e59f..865065c2 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -216,16 +216,20 @@ class EntryPointTests(TestCase): "foo = setuptools.tests.test_resources:EntryPointTests [x]" ) + def setUp(self): + self.dist = Distribution.from_filename( + "FooPkg-1.2-py2.4.egg", metadata=Metadata(('requires.txt','[x]'))) + def testBasics(self): ep = EntryPoint( "foo", "setuptools.tests.test_resources", ["EntryPointTests"], - ["x"] + ["x"], self.dist ) self.assertfields(ep) def testParse(self): s = "foo = setuptools.tests.test_resources:EntryPointTests [x]" - ep = EntryPoint.parse(s) + ep = EntryPoint.parse(s, self.dist) self.assertfields(ep) ep = EntryPoint.parse("bar baz= spammity[PING]") @@ -240,10 +244,6 @@ class EntryPointTests(TestCase): self.assertEqual(ep.attrs, ("foo",)) self.assertEqual(ep.extras, ()) - - - - def testRejects(self): for ep in [ "foo", "x=1=2", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2", |
