| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Test VendorStats message.""" |
||
| 7 | class TestVendorStats(TestStruct): |
||
| 8 | """Test class for TestVendorStats. |
||
| 9 | |||
| 10 | The dump and unpacked data were provided by user bug report. |
||
| 11 | """ |
||
| 12 | |||
| 13 | @classmethod |
||
| 14 | def setUpClass(cls): |
||
| 15 | """[Controller2Switch/VendorStats] - size 1056.""" |
||
| 16 | super().setUpClass() |
||
| 17 | super().set_raw_dump_file('v0x01', 'ofpt_vendor_stats_reply') |
||
| 18 | super().set_raw_dump_object(StatsRequest, xid=4, |
||
| 19 | body_type=StatsTypes.OFPST_VENDOR, |
||
| 20 | flags=0, body=_get_vendor_stats()) |
||
| 21 | super().set_minimum_size(12) |
||
| 22 | |||
| 28 |