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

_get_queue_properties()   A

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
1
"""Test for QueueGetConfigReply message."""
2
from pyof.v0x01.common.phy_port import Port
3
from pyof.v0x01.common.queue import (
4
    PacketQueue, QueueProperties, QueuePropHeader)
5
from pyof.v0x01.controller2switch import queue_get_config_reply
6
from tests.test_struct import TestMsgDumpFile
7
8
9
class TestQueueGetConfigReply(TestMsgDumpFile):
10
    """Test for QueueGetConfigReply message."""
11
12
    dumpfile = 'v0x01/ofpt_queue_get_config_reply.dat'
13
14
    properties = [QueuePropHeader(
15
        queue_property=QueueProperties.OFPQT_MIN_RATE, length=12)]
16
    queues = [PacketQueue(queue_id=1, length=8,
17
                          properties=properties)]
18
    obj = queue_get_config_reply.QueueGetConfigReply(xid=1, port=Port.OFPP_ALL,
19
                                                     queues=queues)
20
    min_size = 16
21