def test_attr_repr(): """Test Attr repr.""" attr = Attr() attr.name = 'some' assert repr(attr) == "<Attr 'some'>"
def test_key(): """Test if the key property uses the name attribute.""" attr = Attr() attr.name = 'value' assert attr.key == 'value'
def test_compartment(): """Test if the default compartment is None.""" attr = Attr() assert attr.compartment is None