File: test_table_mod.py

package info (click to toggle)
python-openflow 2021.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,224 kB
  • sloc: python: 6,906; sh: 4; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Table flow modification tests."""
import unittest

from pyof.v0x04.common.header import Type
from pyof.v0x04.controller2switch.table_mod import TableMod


class TestTableMod(unittest.TestCase):
    """TableMod test."""

    def test_min_size(self):
        """Test minimum message size."""
        self.assertEqual(16, TableMod().get_size())

    def test_header_type(self):
        """Test header type."""
        self.assertEqual(Type.OFPT_TABLE_MOD, TableMod().header.message_type)