def test_pop_failure(self): instance = QSO() with pytest.raises(KeyError): instance.pop('key')
def test_pop_failures(self, key): instance = QSO() with pytest.raises(KeyError): instance.pop(key)
def test_pop_defaults(self): instance = QSO() assert instance.pop(default=None) is None assert instance.pop(0, None) is None assert instance.pop('named', None) is None
def test_pop_examples(self, src, key, expect, value): instance = QSO(src) result = instance.pop(key) assert str(instance) == expect assert result == value