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

Unified Diff: tests/rietveld_test.py

Issue 8038056: Fix handling of file renames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Rebase against HEAD Created 9 years, 3 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 | « tests/patch_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/rietveld_test.py
diff --git a/tests/rietveld_test.py b/tests/rietveld_test.py
index 3316df55eb6aaccae3b482ea400f3fc1212fad24..798e84dd97a522f8316965523522629328ce8d61 100755
--- a/tests/rietveld_test.py
+++ b/tests/rietveld_test.py
@@ -82,7 +82,7 @@ class RietveldTest(unittest.TestCase):
if hasattr(p, 'patchlevel'):
self.assertEquals(p.patchlevel, patchlevel)
if diff:
- self.assertEquals(p.get(), diff)
+ self.assertEquals(p.get(True), diff)
if hasattr(p, 'svn_properties'):
self.assertEquals(p.svn_properties, svn_properties)
@@ -103,9 +103,9 @@ class RietveldTest(unittest.TestCase):
]
patches = self.rietveld.get_patch(123, 456)
self.assertEquals(2, len(patches.patches))
- self._check_patch(patches.patches[0], 'foo', RAW.NEW, is_new=True)
# TODO(maruel): svn sucks.
- self._check_patch(patches.patches[1], 'file_a', RAW.NEW_NOT_NULL)
+ self._check_patch(patches.patches[0], 'file_a', RAW.NEW_NOT_NULL)
+ self._check_patch(patches.patches[1], 'foo', RAW.NEW, is_new=True)
def test_get_patch_add(self):
self.requests = [
« no previous file with comments | « tests/patch_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698