From 25fc07047b9abf915d300d0072734296bbaa5d82 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 31 May 2012 14:40:12 +0200 Subject: gbp.git.repository: Add GitRepository.write_file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Günther --- tests/test_GitRepository.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/test_GitRepository.py') diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 328a65f..5393071 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 -- cgit v1.2.3