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

Unified Diff: chrome/common/extensions/docs/server2/subversion_fetcher_test.py

Issue 10545043: Extensions docs server: Design changes, partial template support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made suggested changes Created 8 years, 6 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
Index: chrome/common/extensions/docs/server2/subversion_fetcher_test.py
diff --git a/chrome/common/extensions/docs/server2/subversion_fetcher_test.py b/chrome/common/extensions/docs/server2/subversion_fetcher_test.py
index 9faf29d2712ad876d7f7541ebcf3776f55764f7f..64c8776ab4fc6edb956576e30f13c8ac5bcb098a 100755
--- a/chrome/common/extensions/docs/server2/subversion_fetcher_test.py
+++ b/chrome/common/extensions/docs/server2/subversion_fetcher_test.py
@@ -18,13 +18,15 @@ class TestSubversionFetcher(SubversionFetcher):
class SubversionFetcherTest(unittest.TestCase):
def testFetchResource(self):
- fetcher = TestSubversionFetcher('', test_urlfetch)
+ fetcher_t = TestSubversionFetcher('trunk', '', test_urlfetch)
+ fetcher_b1 = TestSubversionFetcher('branch1', '', test_urlfetch)
+ fetcher_b2 = TestSubversionFetcher('branch2', '', test_urlfetch)
self.assertEquals('trunk test\n',
- fetcher.FetchResource('trunk', '/test.txt').content)
+ fetcher_t.FetchResource('/test.txt').content)
self.assertEquals('branch1 test\n',
- fetcher.FetchResource('branch1', '/test.txt').content)
+ fetcher_b1.FetchResource('/test.txt').content)
self.assertEquals('branch2 test\n',
- fetcher.FetchResource('branch2', '/test.txt').content)
+ fetcher_b2.FetchResource('/test.txt').content)
if __name__ == '__main__':
unittest.main()

Powered by Google App Engine
This is Rietveld 408576698