-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest_module.py
More file actions
46 lines (35 loc) · 1.1 KB
/
test_module.py
File metadata and controls
46 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from tabnanny import verbose
import unittest
from l2g.external.tlas import PyTLAS
from l2g.external.flt import PyFLT
from l2g.external.equilibrium_analysis import EQA
from l2g.external.bicubic import PyBicubic
from l2g.external.bfgs_2d import PyBfgs2d
from l2g.external.rkf45 import PyRKF45FLT
import numpy as np
class TestModule(unittest.TestCase):
def test_flt_object_creation(self):
for _ in range(10):
obj = PyFLT()
def test_tlas_object_creation(self):
for _ in range(10):
obj = PyTLAS()
def test_assign_tlas_to_flt(self):
for _ in range(10):
tlas_obj = PyTLAS()
flt_obj = PyFLT()
flt_obj.applyRT(tlas_obj)
def test_PyBfgs2d_object_creation(self):
for _ in range(10):
obj = PyBfgs2d()
del obj
def test_PyRKF45FLT_object_creation(self):
for _ in range(10):
obj = PyRKF45FLT()
del obj
def test_EQA_object_creation(self):
for _ in range(10):
obj = EQA()
del obj
if __name__ == '__main__':
unittest.main()