| Index: tests/patch_test.py
|
| diff --git a/tests/patch_test.py b/tests/patch_test.py
|
| index 41ef0cef104036b5f92dde7659c95d60cc6807ee..67837ee99e5e06e26bf914245c70333680aa0e29 100755
|
| --- a/tests/patch_test.py
|
| +++ b/tests/patch_test.py
|
| @@ -360,6 +360,19 @@ class PatchTest(unittest.TestCase):
|
| patchset = patch.PatchSet(patches)
|
| self.assertEquals(expected, patchset.filenames)
|
|
|
| + def testGitPatch(self):
|
| + p = patch.FilePatchDiff('chrome/file.cc', GIT.PATCH, [])
|
| + self._check_patch(
|
| + p, 'chrome/file.cc', GIT.PATCH, is_git_diff=True, patchlevel=1,
|
| + nb_hunks=1)
|
| +
|
| + def testGitPatchShortHunkHeader(self):
|
| + p = patch.FilePatchDiff(
|
| + 'chrome/browser/api/OWNERS', GIT.PATCH_SHORT_HUNK_HEADER, [])
|
| + self._check_patch(
|
| + p, 'chrome/browser/api/OWNERS', GIT.PATCH_SHORT_HUNK_HEADER,
|
| + is_git_diff=True, patchlevel=1, nb_hunks=1)
|
| +
|
|
|
| class PatchTestFail(unittest.TestCase):
|
| # All patches that should throw.
|
|
|