diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-05-31 14:40:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-05-31 17:00:04 +0200 |
commit | 25fc07047b9abf915d300d0072734296bbaa5d82 (patch) | |
tree | 1dc8d1a6e0a89fa20d519ff917052f0265a56198 /tests/test_GitRepository.py | |
parent | 829eea6abab9e28894f50f3766b7bd67110a5d53 (diff) |
gbp.git.repository: Add GitRepository.write_file
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r-- | tests/test_GitRepository.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 328a65fc..5393071e 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -617,6 +617,20 @@ def test_update_ref(): """ +def test_write_file(): + """ + Test git-write-file + + Methods tested: + - L{gbp.git.GitRepository.write_file} + + >>> import gbp.git + >>> repo = gbp.git.GitRepository(repo_dir) + >>> repo.write_file('testfile') + '19af7398c894bc5e86e17259317e4db519e9241f' + """ + + def test_list_tree(): """ Test git-ls-tree |