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

Unified Diff: tests/patch_test.py

Issue 7054057: Add support for empty files, __init__.py is a common example. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 7 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
« no previous file with comments | « 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 dd4b72efebf0c333113a9fb866100611f6682400..034915754eb5bf33b37b4ba88c94ff8fd0d2464e 100755
--- a/tests/patch_test.py
+++ b/tests/patch_test.py
@@ -512,6 +512,15 @@ class PatchTest(unittest.TestCase):
self.assertEquals(
[('svn:executable', '*')],
patch.FilePatchDiff('natsort_test.py', diff, []).svn_properties)
+ diff = (
+ 'diff --git a/natsort_test.py b/natsort_test.py\n'
+ 'new file mode 100644\n'
+ '--- /dev/null\n'
+ '+++ b/natsort_test.py\n'
+ '@@ -0,0 +1,1 @@\n'
+ '+#!/usr/bin/env python\n')
+ self.assertEquals(
+ [], patch.FilePatchDiff('natsort_test.py', diff, []).svn_properties)
if __name__ == '__main__':
« no previous file with comments | « rietveld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698