summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/caching_file_system_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/server2/caching_file_system_test.py')
-rwxr-xr-xchrome/common/extensions/docs/server2/caching_file_system_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/server2/caching_file_system_test.py b/chrome/common/extensions/docs/server2/caching_file_system_test.py
index 393328d..d806520 100755
--- a/chrome/common/extensions/docs/server2/caching_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/caching_file_system_test.py
@@ -21,7 +21,7 @@ def _CreateLocalFs():
class CachingFileSystemTest(unittest.TestCase):
def testReadFiles(self):
file_system = CachingFileSystem(_CreateLocalFs(),
- ObjectStoreCreator.Factory())
+ ObjectStoreCreator.TestFactory())
expected = {
'./test1.txt': 'test1\n',
'./test2.txt': 'test2\n',
@@ -33,7 +33,7 @@ class CachingFileSystemTest(unittest.TestCase):
def testListDir(self):
file_system = CachingFileSystem(_CreateLocalFs(),
- ObjectStoreCreator.Factory())
+ ObjectStoreCreator.TestFactory())
expected = ['dir/'] + ['file%d.html' % i for i in range(7)]
file_system._read_object_store.Set(
'list/',
@@ -55,7 +55,7 @@ class CachingFileSystemTest(unittest.TestCase):
'bob3': 'bob/bob3 contents',
}
})
- file_system = CachingFileSystem(fake_fs, ObjectStoreCreator.Factory())
+ file_system = CachingFileSystem(fake_fs, ObjectStoreCreator.TestFactory())
self.assertEqual('bob/bob0 contents', file_system.ReadSingle('bob/bob0'))
self.assertTrue(fake_fs.CheckAndReset(read_count=1, stat_count=1))