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

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

Issue 14267024: Devserver: have a separate ObjectStore namespace (both memcache and datastore) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove _CheckVersions Created 7 years, 8 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/compiled_file_system_test.py
diff --git a/chrome/common/extensions/docs/server2/compiled_file_system_test.py b/chrome/common/extensions/docs/server2/compiled_file_system_test.py
index 5f5bd1d391ac35530752b6d4cc319c4ed1d96192..419034e4ff91de4470b1f1054a70d630cc04829f 100755
--- a/chrome/common/extensions/docs/server2/compiled_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/compiled_file_system_test.py
@@ -28,17 +28,17 @@ _TEST_DATA = {
def _CreateFactory():
return CompiledFileSystem.Factory(TestFileSystem(deepcopy(_TEST_DATA)),
- ObjectStoreCreator.Factory(),
+ ObjectStoreCreator.Factory('3-0', 'test'),
store_type=TestObjectStore)
class CompiledFileSystemTest(unittest.TestCase):
def testIdentityNamespace(self):
factory = _CreateFactory()
compiled_fs = factory.GetOrCreateIdentity()
- self.assertEqual('CompiledFileSystem/id/file',
+ self.assertEqual('3-0/CompiledFileSystem@test/id/file',
compiled_fs._file_object_store.namespace)
compiled_fs = factory.GetOrCreateIdentity() # should be the same
- self.assertEqual('CompiledFileSystem/id/list',
+ self.assertEqual('3-0/CompiledFileSystem@test/id/list',
compiled_fs._list_object_store.namespace)
def testIdentityFromFile(self):
@@ -69,19 +69,14 @@ class CompiledFileSystemTest(unittest.TestCase):
self.assertEqual(expected_list, fs._list_object_store.namespace)
factory = _CreateFactory()
f = lambda x: x
- CheckNamespace('CompiledFileSystem/CompiledFileSystemTest/file',
- 'CompiledFileSystem/CompiledFileSystemTest/list',
- factory.Create(f, CompiledFileSystemTest))
- CheckNamespace('CompiledFileSystem/CompiledFileSystemTest/foo/file',
- 'CompiledFileSystem/CompiledFileSystemTest/foo/list',
- factory.Create(f, CompiledFileSystemTest, category='foo'))
- CheckNamespace('CompiledFileSystem/CompiledFileSystemTest/file/6',
- 'CompiledFileSystem/CompiledFileSystemTest/list/6',
- factory.Create(f, CompiledFileSystemTest, version=6))
- CheckNamespace('CompiledFileSystem/CompiledFileSystemTest/foo/file/6',
- 'CompiledFileSystem/CompiledFileSystemTest/foo/list/6',
- factory.Create(f, CompiledFileSystemTest, category='foo',
- version=6))
+ CheckNamespace(
+ '3-0/CompiledFileSystem@test/CompiledFileSystemTest/file',
+ '3-0/CompiledFileSystem@test/CompiledFileSystemTest/list',
+ factory.Create(f, CompiledFileSystemTest))
+ CheckNamespace(
+ '3-0/CompiledFileSystem@test/CompiledFileSystemTest/foo/file',
+ '3-0/CompiledFileSystem@test/CompiledFileSystemTest/foo/list',
+ factory.Create(f, CompiledFileSystemTest, category='foo'))
def testPopulateFromFile(self):
def Sleepy(key, val):
« no previous file with comments | « chrome/common/extensions/docs/server2/compiled_file_system.py ('k') | chrome/common/extensions/docs/server2/example_zipper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698