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