Add the new function to the synthetic test
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
M
|
||||||
import unittest
|
import unittest
|
||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
@@ -53,6 +54,10 @@ class FakeRegionset(object):
|
|||||||
for (x,z),mtime in self.chunks.iteritems():
|
for (x,z),mtime in self.chunks.iteritems():
|
||||||
yield x,z,mtime
|
yield x,z,mtime
|
||||||
|
|
||||||
|
def iterate_newer_chunks(self, filemtime):
|
||||||
|
for (x,z),mtime in self.chunks.iteritems():
|
||||||
|
yield x,z,mtime
|
||||||
|
|
||||||
def get_chunk_mtime(self, x, z):
|
def get_chunk_mtime(self, x, z):
|
||||||
try:
|
try:
|
||||||
return self.chunks[x,z]
|
return self.chunks[x,z]
|
||||||
|
|||||||
Reference in New Issue
Block a user