def METHOD_NAME(self):
    self.size_patch = mock.patch('os.path.getsize')
    self.getsize = self.size_patch.start()
    self.api = mock.Mock()
    self.vault = vault.Vault(self.api, None)
    self.vault.name = 'myvault'
    self.mock_open = mock.mock_open()
    stringio = StringIO('content')
    self.mock_open.return_value.read = stringio.read