summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 12:57:47 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 12:43:31 +0100
commit5f08e249fdf8aac7ba717bc997c12507e82b86f0 (patch)
tree4f29ce7424d645ef678d1a8edf484ddfdaeefd4a /tests
parent83b0f9a977d179e31ef8854b2d660e35bf501582 (diff)
Don't rely on dictionary key order
to work towards Python3 support Gbp-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitModifier.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_GitModifier.py b/tests/test_GitModifier.py
index 0a05d4b..8e7930e 100644
--- a/tests/test_GitModifier.py
+++ b/tests/test_GitModifier.py
@@ -19,10 +19,14 @@ def test_author():
'foo'
>>> modifier.email
'bar'
- >>> modifier.get_author_env()
- {'GIT_AUTHOR_EMAIL': 'bar', 'GIT_AUTHOR_NAME': 'foo'}
- >>> modifier.get_committer_env()
- {'GIT_COMMITTER_NAME': 'foo', 'GIT_COMMITTER_EMAIL': 'bar'}
+ >>> modifier.get_author_env()['GIT_AUTHOR_EMAIL']
+ 'bar'
+ >>> modifier.get_author_env()['GIT_AUTHOR_NAME']
+ 'foo'
+ >>> modifier.get_committer_env()['GIT_COMMITTER_NAME']
+ 'foo'
+ >>> modifier.get_committer_env()['GIT_COMMITTER_EMAIL']
+ 'bar'
>>> modifier._get_env('foo')
Traceback (most recent call last):
...