Passed
Push — master ( b50e97...feedcb )
by Humberto
01:28 queued 14s
created

tests.unit.v0x01.test_controller2switch.test_get_config_request   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 TestGetConfigRequest.setUpClass() 0 7 1
1
"""Test GetConfigRequest message."""
2
from pyof.v0x01.controller2switch.get_config_request import GetConfigRequest
3
from tests.unit.test_struct import TestStruct
4
5
6
class TestGetConfigRequest(TestStruct):
7
    """Test class for TestGetConfigRequest."""
8
9
    @classmethod
10
    def setUpClass(cls):
11
        """[Controller2Switch/GetConfigRequest] - size 8."""
12
        super().setUpClass()
13
        super().set_raw_dump_file('v0x01', 'ofpt_get_config_request')
14
        super().set_raw_dump_object(GetConfigRequest, xid=1)
15
        super().set_minimum_size(8)
16