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

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

Issue 10500004: Die build.py, Die: Part 2 (LocalFetcher, Handlebar support, build script) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changes and comments Created 8 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
Index: chrome/common/extensions/docs/server2/resource_fetcher_test.py
diff --git a/chrome/common/extensions/docs/server2/resource_fetcher_test.py b/chrome/common/extensions/docs/server2/resource_fetcher_test.py
deleted file mode 100755
index f671bf92e51c93259a65c279ac3faae1d3c45a01..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/server2/resource_fetcher_test.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-import test_urlfetch
-
-from resource_fetcher import SubversionFetcher
-
-class TestSubversionFetcher(SubversionFetcher):
- def _GetURLFromBranch(self, branch):
- if branch == 'trunk':
- return 'subversion_fetcher/trunk/'
- return 'subversion_fetcher/' + branch + '/'
-
-class SubversionFetcherTest(unittest.TestCase):
- def testFetchResource(self):
- s_fetcher = TestSubversionFetcher(test_urlfetch)
- self.assertEquals('trunk test\n',
- s_fetcher.FetchResource('trunk', 'test.json').content)
- self.assertEquals('branch1 test\n',
- s_fetcher.FetchResource('branch1', 'test.json').content)
- self.assertEquals('branch2 test\n',
- s_fetcher.FetchResource('branch2', 'test.json').content)
-
-if __name__ == '__main__':
- unittest.main()

Powered by Google App Engine
This is Rietveld 408576698