'Test QStandardPaths returning an empty value.'

def test_empty(self, monkeypatch):

    monkeypatch.setattr('qutebrowser.utils.standarddir.QStandardPaths.writableLocation', (lambda typ: ''))
    with pytest.raises(standarddir.EmptyValueError):
        standarddir._writable_location(QStandardPaths.DataLocation)
