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

Unified Diff: tests/gclient_utils_test.py

Issue 500015: gclient: implement a less hacky relative URL implementation (Closed)
Patch Set: Created 11 years 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
« tests/gclient_test.py ('K') | « tests/gclient_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_utils_test.py
diff --git a/tests/gclient_utils_test.py b/tests/gclient_utils_test.py
index 1f019628161498a3e55a4a468ad6aceab178693a..71a63e4a6d70a2c3d61d291293d7d1e0126890f4 100644
--- a/tests/gclient_utils_test.py
+++ b/tests/gclient_utils_test.py
@@ -86,6 +86,18 @@ class SplitUrlRevisionTestCase(SuperMoxTestBase):
self.assertEquals(out_url, url)
+class FullUrlFromRelative(SuperMoxTestBase):
+ def testFullUrlFromRelative(self):
+ base_url = 'svn://a/b/c/d'
+ full_url = gclient_utils.FullUrlFromRelative(base_url, '/crap')
+ self.assertEqual(full_url, 'svn://a/b/crap')
+
+ def testFullUrlFromRelative2(self):
+ base_url = 'svn://a/b/c/d'
+ full_url = gclient_utils.FullUrlFromRelative2(base_url, '/crap')
+ self.assertEqual(full_url, 'svn://a/b/c/crap')
+
+
if __name__ == '__main__':
import unittest
unittest.main()
« tests/gclient_test.py ('K') | « tests/gclient_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698