diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-03 15:29:19 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-03 15:29:24 +0300 |
commit | 87948cdfab149f7fd3fb1e8c6a40a2fd5e2c946f (patch) | |
tree | 5974cc958639bc5a977627b59de457bf7657f714 | |
parent | d6869ebbb7bd942179a8ddc335d45f24438a30ee (diff) | |
download | git-buildpackage-87948cdfab149f7fd3fb1e8c6a40a2fd5e2c946f.tar.gz git-buildpackage-87948cdfab149f7fd3fb1e8c6a40a2fd5e2c946f.tar.bz2 git-buildpackage-87948cdfab149f7fd3fb1e8c6a40a2fd5e2c946f.zip |
tests: Fix tests for Ubuntu
Adapt tests for latest upstream version.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | tests/test_Changelog.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/test_Changelog.py b/tests/test_Changelog.py index 5516d032..d9212977 100644 --- a/tests/test_Changelog.py +++ b/tests/test_Changelog.py @@ -252,12 +252,12 @@ def test_add_section(): >>> cl = gbp.deb.changelog.ChangeLog(filename=testclname) >>> cl.add_section(msg=["Test add section"], distribution=None, author="Debian Maintainer", email="maint@debian.org") >>> cl = gbp.deb.changelog.ChangeLog(filename=testclname) - >>> cl.version - '0.5.33' - >>> cl.debian_version - '0.5.33' - >>> cl['Distribution'] - 'UNRELEASED' + >>> cl.version in ['0.5.33', '0.5.32ubuntu1'] + True + >>> cl.debian_version in ['0.5.33', '0.5.32ubuntu1'] + True + >>> cl['Distribution'] in ['UNRELEASED', 'precise', 'oneiric', 'quantal'] + True >>> 'Test add section' in cl['Changes'] True >>> os.chdir(olddir) @@ -295,12 +295,12 @@ def test_add_entry(): >>> cl.add_section(msg=["Test add section"], distribution=None, author="Debian Maintainer", email="maint@debian.org") >>> cl.add_entry(msg=["Test add entry"], author="Debian Maintainer", email="maint@debian.org") >>> cl = gbp.deb.changelog.ChangeLog(filename=testclname) - >>> cl.version - '0.5.33' - >>> cl.debian_version - '0.5.33' - >>> cl['Distribution'] - 'UNRELEASED' + >>> cl.version in ['0.5.33', '0.5.32ubuntu1'] + True + >>> cl.debian_version in ['0.5.33', '0.5.32ubuntu1'] + True + >>> cl['Distribution'] in ['UNRELEASED', 'precise', 'oneiric', 'quantal'] + True >>> 'Test add entry' in cl['Changes'] True >>> os.chdir(olddir) |