We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0de00 commit 5e7a272Copy full SHA for 5e7a272
tests/test_OMSessionCmd.py
@@ -0,0 +1,24 @@
1
+import OMPython
2
+import unittest
3
+
4
5
+class OMCSessionCmdTester(unittest.TestCase):
6
+ def __init__(self, *args, **kwargs):
7
+ super(OMCSessionCmdTester, self).__init__(*args, **kwargs)
8
9
+ def test_isPackage(self):
10
+ omczmq = OMPython.OMCSessionZMQ()
11
+ omccmd = OMPython.OMCSessionCmd(session=omczmq)
12
+ assert not omccmd.isPackage('Modelica')
13
14
+ def test_isPackage2(self):
15
+ mod = OMPython.ModelicaSystem(modelName="Modelica.Electrical.Analog.Examples.CauerLowPassAnalog",
16
+ lmodel=["Modelica"])
17
+ omccmd = OMPython.OMCSessionCmd(session=mod.getconn)
18
+ assert omccmd.isPackage('Modelica')
19
20
+ # TODO: add more checks ...
21
22
23
+if __name__ == '__main__':
24
+ unittest.main()
0 commit comments