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

TestAggregateStatsReply.setUpClass()   A

Complexity

Conditions 1

Size

Total Lines 11

Duplication

Lines 11
Ratio 100 %

Importance

Changes 0
Metric Value
dl 11
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
1
"""Test for AggregateStatsReply message."""
2
from pyof.v0x01.controller2switch.common import AggregateStatsReply, StatsTypes
3
from pyof.v0x01.controller2switch.stats_reply import StatsReply
4
from tests.test_struct import TestMsgDumpFile
5
6
7
class TestAggregateStatsReply(TestMsgDumpFile):
8
    """Test for AggregateStatsReply message."""
9
10
    dumpfile = 'v0x01/ofpt_aggregate_stats_reply.dat'
11
    aggregate_stats_reply = AggregateStatsReply(packet_count=5,
12
                                                byte_count=1, flow_count=8)
13
    obj = StatsReply(xid=17,
14
                     body_type=StatsTypes.OFPST_AGGREGATE,
15
                     flags=0, body=aggregate_stats_reply)
16
    min_size = 12
17