diff options
author | Barry Scott <barry@barrys-emacs.org> | 2016-06-06 09:27:20 +0100 |
---|---|---|
committer | Barry Scott <barry@barrys-emacs.org> | 2016-06-06 09:27:20 +0100 |
commit | 35658887753da7da9a32a297346fd4ee6e53d45c (patch) | |
tree | 64e857e2ea087d489369937e42ea7374d7e04e84 /git/test/test_commit.py | |
parent | 08a0fad2c9dcdfe0bbc980b8cd260b4be5582381 (diff) | |
parent | e0b21f454ea43a5f67bc4905c641d95f8b6d96fd (diff) | |
download | gitpython-35658887753da7da9a32a297346fd4ee6e53d45c.tar.gz |
Merge remote-tracking branch 'upstream/master' into pr-cmd-raise-with-stderr-on-error
Diffstat (limited to 'git/test/test_commit.py')
-rw-r--r-- | git/test/test_commit.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git/test/test_commit.py b/git/test/test_commit.py index 23b7154a..ea8cd9af 100644 --- a/git/test/test_commit.py +++ b/git/test/test_commit.py @@ -306,6 +306,13 @@ class TestCommit(TestBase): # it appears cmt.author.__repr__() + def test_invalid_commit(self): + cmt = self.rorepo.commit() + cmt._deserialize(open(fixture_path('commit_invalid_data'), 'rb')) + + assert cmt.author.name == u'E.Azer Ko�o�o�oculu', cmt.author.name + assert cmt.author.email == 'azer@kodfabrik.com', cmt.author.email + def test_gpgsig(self): cmt = self.rorepo.commit() cmt._deserialize(open(fixture_path('commit_with_gpgsig'), 'rb')) |