summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-06-28 21:36:33 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-06-28 21:36:33 -0400
commita66b9b41500b6b6765eab1b466f0618a1854468b (patch)
tree0b46d86ddbe29d263449e4dac8b024456ed03411 /setuptools/tests
parent4b40db2a2e7d2506a2507b979d6e5ab2c659ca20 (diff)
parent3e5a0b39681e8f03a8174ac329db4047bb3df3d4 (diff)
downloadpython-setuptools-bitbucket-5.3.tar.gz
Merge pull-request #575.3
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_egg_info.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 27854366..7531e37c 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -138,6 +138,43 @@ class TestSvnDummy(environment.ZippedEnvironment):
return data
+ @skipIf(not test_svn._svn_check, "No SVN to text, in the first place")
+ def test_svn_tags(self):
+ code, data = environment.run_setup_py(["egg_info",
+ "--tag-svn-revision"],
+ pypath=self.old_cwd,
+ data_stream=1)
+ if code:
+ raise AssertionError(data)
+
+ pkginfo = os.path.join('dummy.egg-info', 'PKG-INFO')
+ infile = open(pkginfo, 'r')
+ try:
+ read_contents = infile.readlines()
+ finally:
+ infile.close()
+ del infile
+
+ self.assertTrue("Version: 0.1.1-r1\n" in read_contents)
+
+ @skipIf(not test_svn._svn_check, "No SVN to text, in the first place")
+ def test_no_tags(self):
+ code, data = environment.run_setup_py(["egg_info"],
+ pypath=self.old_cwd,
+ data_stream=1)
+ if code:
+ raise AssertionError(data)
+
+ pkginfo = os.path.join('dummy.egg-info', 'PKG-INFO')
+ infile = open(pkginfo, 'r')
+ try:
+ read_contents = infile.readlines()
+ finally:
+ infile.close()
+ del infile
+
+ self.assertTrue("Version: 0.1.1\n" in read_contents)
+
class TestSvnDummyLegacy(environment.ZippedEnvironment):