67
67
lines = ["=== added directory 'foo/bar'\n",
68
68
"=== modified file 'orig/commands.py'\n",
69
69
"--- orig/commands.py\n",
75
72
lines.__iter__(), allow_dirty=True, keep_dirty=True)
77
73
self.assertEqual(patches[0]['dirty_head'],
78
74
["=== added directory 'foo/bar'\n",
79
75
"=== modified file 'orig/commands.py'\n"])
80
76
self.assertEqual(patches[0]['patch'].get_header().splitlines(True),
81
77
["--- orig/commands.py\n", "+++ mod/dommands.py\n"])
87
79
def testValidPatchHeader(self):
88
80
"""Parse a valid patch header"""