Exemplo n.º 1
0
def test_attributes():
    attributes = {"test": {"value": [10], "derp": "OMG"}}
    mesh_data = MeshData(attributes=attributes)

    assert mesh_data.hasAttribute("test")
    assert mesh_data.getAttribute("test") == {"value": [10], "derp": "OMG"}

    assert mesh_data.attributeNames() == ["test"]
Exemplo n.º 2
0
def test_attributes():
    attributes = { "test": {
                "value": [10],
                "derp": "OMG"
                }}
    mesh_data = MeshData(attributes = attributes)

    assert mesh_data.hasAttribute("test")
    assert mesh_data.getAttribute("test") == { "value": [10], "derp": "OMG" }

    assert mesh_data.attributeNames() == ["test"]