'Mock for QSaveFile.'

@pytest.fixture
def qsavefile_mock(self, mocker):

    m = mocker.patch('qutebrowser.utils.qtutils.QSaveFile')
    instance = m()
    (yield instance)
    instance.commit.assert_called_once_with()
