diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-05 16:10:50 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-05 16:10:50 +0100 |
commit | 3d0556a31916a709e9da3eafb92fc6b8bf69896c (patch) | |
tree | 72a090924638d495f98ea3ece71fdd22dcacc4d2 /git/test/test_base.py | |
parent | 04357d0d46fee938a618b64daed1716606e05ca5 (diff) | |
download | gitpython-3d0556a31916a709e9da3eafb92fc6b8bf69896c.tar.gz |
Added test of #147 to verify it works.
Applied a few more fixes to commit implementation, possibly not the last
Diffstat (limited to 'git/test/test_base.py')
-rw-r--r-- | git/test/test_base.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/git/test/test_base.py b/git/test/test_base.py index a14d4680..edacbd80 100644 --- a/git/test/test_base.py +++ b/git/test/test_base.py @@ -1,3 +1,4 @@ +#-*-coding:utf-8-*- # test_base.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # @@ -106,3 +107,13 @@ class TestBase(TestBase): assert not rw_repo.config_reader("repository").getboolean("core", "bare") assert rw_remote_repo.config_reader("repository").getboolean("core", "bare") assert os.path.isdir(os.path.join(rw_repo.working_tree_dir, 'lib')) + + @with_rw_repo('0.1.6') + def test_add_unicode(self, rw_repo): + filename = u"שלום.txt" + + file_path = os.path.join(rw_repo.working_dir, filename) + open(file_path, "wb").write('something') + + rw_repo.git.add(rw_repo.working_dir) + rw_repo.index.commit('message') |