TestModes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
dl 0
loc 4
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_init() 0 3 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