forked from arktools/pydatcom
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.py
More file actions
24 lines (17 loc) · 708 Bytes
/
test.py
File metadata and controls
24 lines (17 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
import unittest
import os
from pydatcom import DatcomParser, DatcomExporter, DatcomPlotter
class Test(unittest.TestCase):
def setUp(self):
pass
def test_parse(self):
parser = DatcomParser(os.path.join(os.path.curdir, 'data', 'Citation.out'))
def test_export(self):
parser = DatcomParser(os.path.join(os.path.curdir, 'data', 'Citation.out'))
exporter = DatcomExporter(parser.get_common(), 'modelica.mo')
result = exporter.get_export()
def test_plot(self):
parser = DatcomParser(os.path.join(os.path.curdir, 'data', 'Citation.out'))
plotter = DatcomPlotter(parser.get_common())
plotter.common_plots()