Passed
Push — master ( b085fb...082312 )
by Humberto
03:44
created

TestGetAsyncReply.setUpClass()   A

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 10
rs 9.95
c 0
b 0
f 0
cc 1
nop 1
1
"""GetAsyncReply message tests."""
2
from pyof.v0x04.controller2switch.get_async_reply import GetAsyncReply
3
from tests.test_struct import TestStruct
4
5
6
class TestGetAsyncReply(TestStruct):
7
    """Test the GetAsyncReply 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_get_async_reply')
14
        super().set_raw_dump_object(GetAsyncReply, 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