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

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

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move logic into file_system 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/memcache_file_system_test.py
diff --git a/chrome/common/extensions/docs/server2/memcache_file_system_test.py b/chrome/common/extensions/docs/server2/memcache_file_system_test.py
index 73d6e873045e32866c57357f782e93caa350747b..386231e8d99d8f6935afa6ba01e39921c04989d8 100755
--- a/chrome/common/extensions/docs/server2/memcache_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/memcache_file_system_test.py
@@ -32,16 +32,14 @@ class LocalFileSystemTest(unittest.TestCase):
expected = ['dir/']
for i in range(7):
expected.append('file%d.html' % i)
- self.assertEqual(
- expected,
- sorted(self._file_system.Read(['list/']).Get()['list/']))
+ self.assertEqual(expected,
+ sorted(self._file_system.ReadSingle('list/')))
expected.remove('file0.html')
self._memcache.Set('list/',
(expected, self._file_system.Stat('list/')),
memcache.MEMCACHE_FILE_SYSTEM_READ)
- self.assertEqual(
- expected,
- sorted(self._file_system.Read(['list/']).Get()['list/']))
+ self.assertEqual(expected,
+ sorted(self._file_system.ReadSingle('list/')))
if __name__ == '__main__':
unittest.main()

Powered by Google App Engine
This is Rietveld 408576698