advanced-python-homework-2023/scada_system/tests/controls/test_device.py

15 lines
441 B
Python
Raw Normal View History

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):
self.assertEqual(DeviceLifecycleState["INIT"], DeviceLifecycleState.INIT)
self.assertEqual(DeviceLifecycleState["OPEN"], DeviceLifecycleState.OPEN)
self.assertEqual(DeviceLifecycleState["CLOSE"], DeviceLifecycleState.CLOSE)