aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_svn.py
diff options
context:
space:
mode:
authorPhilip Thiem <ptthiem@gmail.com>2013-07-04 12:24:21 -0500
committerPhilip Thiem <ptthiem@gmail.com>2013-07-04 12:24:21 -0500
commit44989bd50e225241c1dfc7e60c5a973586a4fc13 (patch)
tree938a6092a1ae14e0c92c7c14744935bb547bbc44 /setuptools/tests/test_svn.py
parentd30f79227d14b87b2610bcf726de1c20e7cbf10f (diff)
downloadexternal_python_setuptools-44989bd50e225241c1dfc7e60c5a973586a4fc13.tar.gz
external_python_setuptools-44989bd50e225241c1dfc7e60c5a973586a4fc13.tar.bz2
external_python_setuptools-44989bd50e225241c1dfc7e60c5a973586a4fc13.zip
cannot use list since that requires repo access, initial recurse parsing
--HG-- extra : rebase_source : 87deb8066a0cb067e7bccc63cc156b7fed30ea29
Diffstat (limited to 'setuptools/tests/test_svn.py')
-rw-r--r--setuptools/tests/test_svn.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/setuptools/tests/test_svn.py b/setuptools/tests/test_svn.py
index d4216491..678508c0 100644
--- a/setuptools/tests/test_svn.py
+++ b/setuptools/tests/test_svn.py
@@ -12,6 +12,7 @@ import stat
from setuptools import svn_utils
from setuptools.command import egg_info
+from setuptools.command import sdist
#requires python >= 2.4
from subprocess import call as _call
@@ -86,6 +87,14 @@ class TestSvn_1_7(unittest.TestCase):
rev = egg_info.egg_info.get_svn_revision()
self.assertEqual(rev, '4')
+ def test_entry_iterator(self):
+ expected = set([
+ os.path.join('.', 'readme.txt'),
+ os.path.join('.', 'other'),
+ os.path.join('.', 'other', 'test.py'),
+ ])
+ self.assertEqual(set(x for x in sdist.entries_finder('.', '')),
+ expected)
def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__)