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