Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
unittest
python
test_case.py
Go to the documentation of this file.
1
import
unittest
2
3
from
pinocchio.utils
import
isapprox
4
5
def
tracefunc
(frame, event, arg):
6
print(
"%s, %s: %d"
% (event, frame.f_code.co_filename, frame.f_lineno))
7
return
tracefunc
8
9
class
PinocchioTestCase
(unittest.TestCase):
10
def
assertApprox
(self, a, b, eps=1e-6):
11
return
self.assertTrue(isapprox(a, b, eps),
12
"\n%s\nis not approximately equal to\n%s\nwith precision %f"
% (a, b, eps))
test_case.PinocchioTestCase.assertApprox
def assertApprox(self, a, b, eps=1e-6)
Definition:
test_case.py:10
test_case.PinocchioTestCase
Definition:
test_case.py:9
pinocchio.utils
Definition:
bindings/python/pinocchio/utils.py:1
test_case.tracefunc
def tracefunc(frame, event, arg)
Definition:
test_case.py:5
pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:04