Skip to content

Commit e8443d7

Browse files
committed
Updated test
1 parent cd5283b commit e8443d7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bindings/python/tests/test_table.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test dlite.table.Table"""
2+
import dlite
23
from dlite.table import Table
34

45

@@ -9,5 +10,10 @@
910
]
1011

1112
t = Table(table, baseuri="http://onto-ns.com/meta/test/0.1/")
12-
datamodels = t.get_datamodels()
13-
print(datamodels[0])
13+
dm1, dm2 = t.get_datamodels()
14+
15+
assert isinstance(dm1, dlite.Metadata)
16+
assert isinstance(dm2, dlite.Metadata)
17+
assert dm1.getprop("symbol").name == "symbol"
18+
assert dm1.getprop("symbol").type == "string"
19+
assert dm1.getprop("symbol").shape.tolist() == ["len", "nsymbols"]

0 commit comments

Comments
 (0)