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