def test_delattr(): n = OrderedMapping() with pytest.raises(AttributeError): del n.not_there n.there = 1 del n.there assert not hasattr(n, 'there'), \ 'del should delete attribute'
def test_delattr(): n = OrderedMapping() with pytest.raises(AttributeError): del n.not_there n.there =1 del n.there assert not hasattr(n, 'there'), \ 'del should delete attribute'
def test_delattr(): from pykern.pkcollections import OrderedMapping n = OrderedMapping() with pytest.raises(AttributeError): del n.not_there n.there = 1 del n.there assert not hasattr(n, 'there'), \ 'del should delete attribute'