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

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

Issue 10704252: Extensions Docs Server: Internal file system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed up Created 8 years, 5 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/local_fetcher_test.py
diff --git a/chrome/common/extensions/docs/server2/local_fetcher_test.py b/chrome/common/extensions/docs/server2/local_fetcher_test.py
deleted file mode 100755
index 0990dac2d8071582964b96491ace0b177737a4bd..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/server2/local_fetcher_test.py
+++ /dev/null
@@ -1,37 +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 os
-import unittest
-
-from local_fetcher import LocalFetcher
-
-class LocalFetcherTest(unittest.TestCase):
- def setUp(self):
- self._base_path = os.path.join('test_data', 'local_fetcher')
- self._fetcher = LocalFetcher(self._base_path)
-
- def testFetchResource(self):
- self.assertEquals('test1\n',
- self._fetcher.FetchResource('test1.txt').content)
- self.assertEquals('test2\n',
- self._fetcher.FetchResource('test2.txt').content)
- self.assertEquals('test3\n',
- self._fetcher.FetchResource('test3.txt').content)
-
- def testListDirectory(self):
- expected = ['file%d.html' % i for i in range(7)]
- self.assertEquals(
- expected,
- sorted(self._fetcher.ListDirectory('recursive_list/list').content))
- expected2 = ['recursive_list/' + x for x in expected]
- expected2.extend(['recursive_list/list/' + x for x in expected])
- self.assertEquals(
- expected2,
- sorted(self._fetcher.ListDirectory('recursive_list',
- recursive=True).content))
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « chrome/common/extensions/docs/server2/local_fetcher.py ('k') | chrome/common/extensions/docs/server2/local_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698