blob: c9352a1803198241d676cf5d623b054cd99a0736 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from test.asserts import *
from git_python import *
from 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()))
|