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