tests
python
oscillator.py
Go to the documentation of this file.
1
import
unittest
2
from
random
import
random
3
4
from
dynamic_graph.sot.tools
import
Oscillator
5
6
7
class
OscillatorTest
(unittest.TestCase):
8
def
test_load
(self):
9
epsilon = random()
10
osc = Oscillator(
"my oscillator"
)
11
osc.setEpsilon(epsilon)
12
self.assertEqual(osc.getEpsilon(), epsilon)
13
14
15
if
__name__ ==
"__main__"
:
16
unittest.main()
oscillator.OscillatorTest
Definition:
oscillator.py:7
oscillator.OscillatorTest.test_load
def test_load(self)
Definition:
oscillator.py:8
sot-tools
Author(s): Mehdi Benallegue, Francois Keith, Florent Lamiraux, Thomas Moulard, Olivier Stasse, Jorrit T'Hooft
autogenerated on Wed Aug 2 2023 02:35:13