112
112
self.lineThing(" hello\n", ContextLine)
113
113
self.lineThing("+hello\n", InsertLine)
114
114
self.lineThing("-hello\n", RemoveLine)
116
116
def testMalformedLine(self):
117
117
"""Parse invalid valid hunk lines"""
118
118
self.makeMalformedLine("hello\n")
120
120
def compare_parsed(self, patchtext):
121
121
lines = patchtext.splitlines(True)
122
122
patch = parse_patch(lines.__iter__())