Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: tests/patch_test.py

Issue 6825085: Add script to apply a patch from rietveld. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« apply_issue.py ('K') | « rietveld.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/patch_test.py
diff --git a/tests/patch_test.py b/tests/patch_test.py
index bd8a4c71a1cf8300ec740ddeeca09801d702519b..b76c693d0d938fa26bc7e2557d39e1d628ee40f1 100755
--- a/tests/patch_test.py
+++ b/tests/patch_test.py
@@ -192,6 +192,20 @@ class PatchTest(unittest.TestCase):
except patch.UnsupportedPatchFormat:
pass
+ def testFilePatchNoDiff(self):
+ try:
+ patch.FilePatchDiff('foo', '', [])
+ self.fail()
+ except patch.UnsupportedPatchFormat:
+ pass
+
+ def testFilePatchNoneDiff(self):
+ try:
+ patch.FilePatchDiff('foo', None, [])
+ self.fail()
+ except patch.UnsupportedPatchFormat:
+ pass
+
def testFilePatchBadDiffName(self):
try:
patch.FilePatchDiff('foo', SVN_PATCH, [])
« apply_issue.py ('K') | « rietveld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698