| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """Test for StatsReply message.""" |
||
| 2 | from pyof.v0x01.controller2switch.common import StatsType |
||
| 3 | from pyof.v0x01.controller2switch.stats_reply import StatsReply |
||
| 4 | from tests.unit.test_struct import TestStruct |
||
| 5 | |||
| 6 | |||
| 7 | class TestStatsReply(TestStruct): |
||
| 8 | """Test for StatsReply message.""" |
||
| 9 | |||
| 10 | @classmethod |
||
| 11 | def setUpClass(cls): |
||
| 12 | """[Controller2Switch/StatsReply] - size 12.""" |
||
| 13 | super().setUpClass() |
||
| 14 | super().set_raw_dump_file('v0x01', 'ofpt_stats_reply') |
||
| 15 | super().set_raw_dump_object(StatsReply, xid=1, |
||
| 16 | body_type=StatsType.OFPST_FLOW, |
||
| 17 | flags=0x0001, body=b'') |
||
| 18 | super().set_minimum_size(12) |
||
| 19 |