TestModes.test_init()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
1
import unittest
2
import obdlib.obd.modes as modes
3
4
5
class TestModes(unittest.TestCase):
6
    def test_init(self):
7
        m = modes.Modes(1)
8
        self.assertIsInstance(m.modes, dict)
9
10
11
suite = unittest.TestLoader().loadTestsFromTestCase(TestModes)
12
unittest.TextTestRunner(verbosity=2).run(suite)
13