def test_update_keywords(self): instance = QSO("key=value1&key=value2&bar=baz") instance.update(bar="diz") assert str(instance) == "key=value1&key=value2&bar=diz" instance.update(diz="doz") assert str(instance) == "key=value1&key=value2&bar=diz&diz=doz" instance.update(key="value3") assert str(instance) == "bar=diz&diz=doz&key=value3"
def test_update(self, src, change, expect): instance = QSO(src) instance.update(change) assert str(instance) == expect