CacheWriter: Update tests for previous open file change.

This commit is contained in:
Brett Smith 2017-05-17 15:29:21 -04:00
parent 08840e6757
commit 8e5cb0642f

View file

@ -15,12 +15,9 @@ class TestCacheFile(oxrlib.cache.WriteCacheFile):
def __init__(self, path, *args, **kwargs):
self.path = path
assert args[0].startswith('w')
def open(self):
last_file = StringIO()
last_file.name = self.path.as_posix()
type(self).last_file = last_file
return self.last_file
self.open_file = StringIO()
self.open_file.name = self.path.as_posix()
type(self).last_file = self.open_file
class FakeRate: