X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test%2Fmqo_test.py;h=b2bbd1b0b10f154234c6f91186dc8c34306e9980;hb=909e9ce1deb21d4f1697ec18b4520e5e122dce92;hp=12daf50ca0ccb5f565c74e3f87e9cd69df0a40c0;hpb=802733e2de82efd381b02f51c7c60cff56a6330b;p=meshio%2Fpymeshio.git diff --git a/test/mqo_test.py b/test/mqo_test.py index 12daf50..b2bbd1b 100644 --- a/test/mqo_test.py +++ b/test/mqo_test.py @@ -1,9 +1,14 @@ import pymeshio.mqo +import pymeshio.mqo.reader import sys -MQO_FILE="K:/model/cube.mqo" -def test_mqo_load(): - io=pymeshio.mqo.IO() - assert io.read(MQO_FILE) +MQO_FILE="resources/cube.mqo" + + +def test_mqo_read(): + model=pymeshio.mqo.reader.read_from_file(MQO_FILE) + assert pymeshio.mqo.Model==model.__class__ + assert 6==len(model.materials) + assert 1==len(model.objects)