From 5f08e249fdf8aac7ba717bc997c12507e82b86f0 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 12:57:47 +0100 Subject: Don't rely on dictionary key order to work towards Python3 support Gbp-Dch: Ignore --- tests/test_GitModifier.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests') 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): ... -- cgit v1.2.3