Completed
Pull Request — master (#606)
by Gleyberson
02:26
created

tests.unit.v0x04.test_controller2switch.test_table_stats   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A TestTableStats.setUpClass() 0 7 1
1
"""Table stats message."""
2
from pyof.v0x04.controller2switch.multipart_reply import TableStats
3
from tests.unit.test_struct import TestStruct
4
5
6
class TestTableStats(TestStruct):
7
    """Table stats message."""
8
9
    @classmethod
10
    def setUpClass(cls):
11
        """Configure raw file and its object in parent class (TestDump)."""
12
        super().setUpClass()
13
        super().set_raw_dump_file('v0x04', 'ofpt_table_stats')
14
        super().set_raw_dump_object(TableStats)
15
        super().set_minimum_size(24)
16