def test_err_dummyattr_apply(): with pytest.raises(TypeError): va.walker.apply(attr.DummyAttr(), None, {})
def test_dummyattr_eq(): one = attr.DummyAttr() two = attr.DummyAttr() other = attr.ValueAttr({'a': 'b'}) assert one == two assert one != other
def test_err_dummyattr_create(): with pytest.raises(TypeError): va.walker.create(attr.DummyAttr(), None, {})
def test_dummyattr_collides(): one = attr.DummyAttr() two = attr.DummyAttr() assert one.collides(two) is False
def test_dummyattr_hash(): one = attr.DummyAttr() assert hash(one) == hash(None)
def test_dummyattr(): one = attr.DummyAttr() other = attr.ValueAttr({'a': 'b'}) assert (one | other) is other assert (one & other) is other
def test_err_dummyattr_apply(): with pytest.raises(TypeError): hek.attrs.walker.apply(attr.DummyAttr(), {})
def test_err_dummyattr_create(): with pytest.raises(TypeError): hek.attrs.walker.create(attr.DummyAttr(), {})