mirror of
https://github.com/botlabsDev/npkpy.git
synced 2025-12-10 06:54:37 +01:00
18 lines
419 B
Python
18 lines
419 B
Python
import struct
|
|
import unittest
|
|
|
|
from npkpy.npk.xCntFlagB import XCnt_flagB
|
|
from tests.constants import DummyBasicCnt
|
|
|
|
|
|
class Test_xCnt_flagB(unittest.TestCase):
|
|
def setUp(self) -> None:
|
|
dummyCnt = DummyBasicCnt()
|
|
dummyCnt._00_cnt_id = struct.pack("h", 8)
|
|
|
|
self.cnt = XCnt_flagB(dummyCnt.binCnt, offsetInPck=0)
|
|
|
|
def test_validateCntId(self):
|
|
self.assertEqual(8, self.cnt.cnt_id)
|
|
|
|
|