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

tests.unit.v0x04.test_controller2switch.test_set_async   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A TestSetAsync.setUpClass() 0 10 1
1
"""SetAsync message tests."""
2
from pyof.v0x04.controller2switch.set_async import SetAsync
3
from tests.unit.test_struct import TestStruct
4
5
6
class TestSetAsync(TestStruct):
7
    """Test the SetAsync 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_set_async')
14
        super().set_raw_dump_object(SetAsync, xid=3, packet_in_mask1=0,
15
                                    packet_in_mask2=0, port_status_mask1=0,
16
                                    port_status_mask2=0, flow_removed_mask1=0,
17
                                    flow_removed_mask2=0)
18
        super().set_minimum_size(32)
19