-
Notifications
You must be signed in to change notification settings - Fork 28
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
3 changed files
with
60 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Unit tests for FrameGatewayRebootConfirmation.""" | ||
import unittest | ||
|
||
from pyvlx.frame_creation import frame_from_raw | ||
from pyvlx.frames import FrameGatewayRebootConfirmation | ||
|
||
|
||
class TestFrameRebootConfirmation(unittest.TestCase): | ||
"""Test class FrameSetUTCConfirmation.""" | ||
|
||
# pylint: disable=too-many-public-methods,invalid-name | ||
|
||
EXAMPLE_FRAME = b'\x00\x03\x00\x02\x01' | ||
|
||
def test_bytes(self): | ||
"""Test FrameGatewayRebootConfirmation.""" | ||
frame = FrameGatewayRebootConfirmation() | ||
self.assertEqual(bytes(frame), self.EXAMPLE_FRAME) | ||
|
||
def test_frame_from_raw(self): | ||
"""Test parse FrameGatewayRebootConfirmation from raw.""" | ||
frame = frame_from_raw(self.EXAMPLE_FRAME) | ||
self.assertTrue(isinstance(frame, FrameGatewayRebootConfirmation)) | ||
|
||
def test_str(self): | ||
"""Test string representation of FrameGatewayRebootConfirmation.""" | ||
frame = FrameGatewayRebootConfirmation() | ||
self.assertEqual(str(frame), "<FrameGatewayRebootConfirmation/>") |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Unit tests for FrameGatewayRebootRequest.""" | ||
import unittest | ||
|
||
from pyvlx.frame_creation import frame_from_raw | ||
from pyvlx.frames import FrameGatewayRebootRequest | ||
|
||
|
||
class TestFrameRebootRequest(unittest.TestCase): | ||
"""Test class FrameGatewayRebootRequest.""" | ||
|
||
# pylint: disable=too-many-public-methods,invalid-name | ||
|
||
EXAMPLE_FRAME = b'\x00\x03\x00\x01\x02' | ||
|
||
def test_bytes(self): | ||
"""Test FrameGatewayRebootRequest.""" | ||
frame = FrameGatewayRebootRequest() | ||
self.assertEqual(bytes(frame), self.EXAMPLE_FRAME) | ||
|
||
def test_frame_from_raw(self): | ||
"""Test parse FrameGatewayRebootRequest from raw.""" | ||
frame = frame_from_raw(self.EXAMPLE_FRAME) | ||
self.assertTrue(isinstance(frame, FrameGatewayRebootRequest)) | ||
|
||
def test_str(self): | ||
"""Test string representation of FrameGatewayRebootRequest.""" | ||
frame = FrameGatewayRebootRequest() | ||
self.assertEqual(str(frame), "<FrameGatewayRebootRequest/>") |