Add mocked close() function to MockFH

This commit is contained in:
Erik Johnson 2018-06-17 09:38:02 -05:00
parent f6b46bc608
commit 852ba4b982
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -99,6 +99,7 @@ class MockFH(object):
self.filename = filename
self.empty_string = b'' if isinstance(read_data, six.binary_type) else ''
self.read_data = self._iterate_read_data(read_data)
self.close = Mock()
self.write = Mock()
self.writelines = Mock()