Commit 97d98934 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 48c38201
...@@ -266,9 +266,7 @@ class tFile: ...@@ -266,9 +266,7 @@ class tFile:
# #
# incorev is [] of 1/0 representing whether block data is present or not. # incorev is [] of 1/0 representing whether block data is present or not.
def assertCache(t, incorev): def assertCache(t, incorev):
pass assert t.cached() == incorev
# XXX todo
#mm.incore(
# blk returns bytearray connected to view of file[blk]. # blk returns bytearray connected to view of file[blk].
...@@ -379,7 +377,7 @@ def test_wcfs(): ...@@ -379,7 +377,7 @@ def test_wcfs():
t.commit() t.commit()
t.wcsync() # sync wcfs to ZODB t.wcsync() # sync wcfs to ZODB
f.assertCache([0,0,0]) # initially not cached assert f.cached() == [0,0,0] # initially not cached
f.assertData ([b'',b'',s], mtime=t.head) f.assertData ([b'',b'',s], mtime=t.head)
# XXX assertCache all present? # XXX assertCache all present?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment