2023-10-13 22:33:07 +03:00
|
|
|
from unittest import TestCase
|
|
|
|
|
|
|
|
from controls.device import DeviceLifecycleState
|
|
|
|
|
|
|
|
|
|
|
|
class DeviceLifecycleStateTest(TestCase):
|
|
|
|
|
|
|
|
def setUp(self) -> None:
|
|
|
|
pass
|
|
|
|
|
|
|
|
def test_enum(self):
|
2023-11-28 22:12:09 +03:00
|
|
|
self.assertEqual(DeviceLifecycleState["INIT"], DeviceLifecycleState.INIT)
|
|
|
|
self.assertEqual(DeviceLifecycleState["OPEN"], DeviceLifecycleState.OPEN)
|
|
|
|
self.assertEqual(DeviceLifecycleState["CLOSE"], DeviceLifecycleState.CLOSE)
|