From 3d80c335ecbac1db0826d9d5d03fe36b92ccf62d Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 28 Oct 2011 10:14:34 +0200 Subject: GitModifier: Don't use self.__dict__.update(locals()) to make pychecker happy --- tests/test_GitModifier.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/test_GitModifier.py (limited to 'tests') diff --git a/tests/test_GitModifier.py b/tests/test_GitModifier.py new file mode 100644 index 00000000..10188a0e --- /dev/null +++ b/tests/test_GitModifier.py @@ -0,0 +1,23 @@ +# vim: set fileencoding=utf-8 : + +""" +Test L{gbp.git.GitModifier} +""" + +def test_author(): + """ + Methods tested: + - L{gbp.git.GitModifer.get_author_env} + - L{gbp.git.GitModifer.get_comitter_env} + + >>> import gbp.git + >>> modifier = gbp.git.GitModifier("foo", "bar") + >>> modifier.name + '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'} + """ -- cgit v1.2.3