From 33ebe7acec14b25c5f84f35a664803fcab2f7781 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Wed, 7 May 2008 16:49:48 -0400 Subject: initial project --- test/git/test_diff.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/git/test_diff.py (limited to 'test/git/test_diff.py') diff --git a/test/git/test_diff.py b/test/git/test_diff.py new file mode 100644 index 00000000..4c1fa7fb --- /dev/null +++ b/test/git/test_diff.py @@ -0,0 +1,13 @@ +from gitalicious.test.asserts import * +from gitalicious.lib import * +from gitalicious.test.helper import * + +class TestDiff(object): + def setup(self): + self.repo = Repo(GIT_REPO) + + def test_list_from_string_new_mode(self): + output = fixture('diff_new_mode') + diffs = Diff.list_from_string(self.repo, output) + assert_equal(1, len(diffs)) + assert_equal(10, len(diffs[0].diff.splitlines())) -- cgit v1.2.1