Test Failed
Pull Request — master (#404)
by
unknown
01:46
created

TestPortMod.setUpClass()   A

Complexity

Conditions 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
1
"""Test PortMod message."""
2
from pyof.v0x01.common.phy_port import PortConfig, PortFeatures
3
from pyof.v0x01.controller2switch.port_mod import PortMod
4
from tests.test_struct import TestMsgDumpFile
5
6
7
class TestPortMod(TestMsgDumpFile):
8
    """Test class for PortMod."""
9
10
    dumpfile = 'v0x01/ofpt_port_mod.dat'
11
    obj = PortMod(xid=3, port_no=80,
12
                  hw_addr='aa:bb:cc:00:33:9f',
13
                  config=PortConfig.OFPPC_PORT_DOWN,
14
                  mask=PortConfig.OFPPC_NO_FWD,
15
                  advertise=PortFeatures.OFPPF_FIBER)
16
    min_size = 32
17