Exemple #1
0
def test_ident():
    ident = Ident("string", "value", True)
    assert ident.string == "string"
    assert ident.value == "value"
    assert ident.mixin is True
    assert ident.node_name == "ident"
    assert ident.is_empty() is False
Exemple #2
0
def test_ident_no_value():
    ident = Ident("node_name", None, True)
    assert ident.node_name == "ident"
    assert ident.string == "node_name"
    assert ident.value == null
    assert ident.mixin is True
    assert ident.is_empty() is False