File: test_features_request.py

package info (click to toggle)
python-openflow 1.1.0~alpha2-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 692 kB
  • ctags: 1,027
  • sloc: python: 2,713; makefile: 207; sh: 8
file content (15 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Feature request message tests."""
from pyof.v0x01.controller2switch.features_request import FeaturesRequest
from tests.test_struct import TestStruct


class TestFeaturesRequest(TestStruct):
    """Feature request message tests (also those in :class:`.TestDump`)."""

    @classmethod
    def setUpClass(cls):
        """Configure raw file and its object in parent class (TestDump)."""
        super().setUpClass()
        super().set_raw_dump_file('v0x01', 'ofpt_features_request')
        super().set_raw_dump_object(FeaturesRequest, xid=3)
        super().set_minimum_size(8)