forked from kytos/python-openflow
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
83 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
tests/unit/v0x04/test_controller2switch/test_meter_mod.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
"""MeterMod tests.""" | ||
from unittest import TestCase | ||
|
||
from pyof.v0x04.controller2switch.meter_mod import ( | ||
MeterBandDrop, MeterBandDscpRemark, MeterBandExperimenter, MeterBandHeader, | ||
MeterMod) | ||
|
||
|
||
class TestMeterMod(TestCase): | ||
class TestMeterMod: | ||
"""MeterMod test.""" | ||
|
||
def test_min_size(self): | ||
"""Test minimum message size.""" | ||
self.assertEqual(16, MeterMod().get_size()) | ||
assert 16 == MeterMod().get_size() | ||
|
||
|
||
class TestMeterBandHeader(TestCase): | ||
class TestMeterBandHeader: | ||
"""MeterBandHeader test.""" | ||
|
||
def test_min_size(self): | ||
"""Test minimum message size.""" | ||
self.assertEqual(12, MeterBandHeader().get_size()) | ||
assert 12 == MeterBandHeader().get_size() | ||
|
||
|
||
class TestMeterBandDrop(TestCase): | ||
class TestMeterBandDrop: | ||
"""MeterBandDrop test.""" | ||
|
||
def test_min_size(self): | ||
"""Test minimum message size.""" | ||
self.assertEqual(16, MeterBandDrop().get_size()) | ||
assert 16 == MeterBandDrop().get_size() | ||
|
||
|
||
class TestMeterBandDscpRemark(TestCase): | ||
class TestMeterBandDscpRemark: | ||
"""MeterBandDscpRemark test.""" | ||
|
||
def test_min_size(self): | ||
"""Test minimum message size.""" | ||
self.assertEqual(16, MeterBandDscpRemark().get_size()) | ||
assert 16 == MeterBandDscpRemark().get_size() | ||
|
||
|
||
class TestMeterBandExperimenter(TestCase): | ||
class TestMeterBandExperimenter: | ||
"""MeterBandExperimenter test.""" | ||
|
||
def test_min_size(self): | ||
"""Test minimum message size.""" | ||
self.assertEqual(16, MeterBandExperimenter().get_size()) | ||
assert 16 == MeterBandExperimenter().get_size() |