test_status.py 572 Bytes
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
5
6
7
8
9
10
"""
Identifier:     tests/test_status.py
Name:           test_status.py
Description:    test CsstStatus
Author:         Bo Zhang
Created:        2022-09-13
Modified-History:
    2022-09-13, Bo Zhang, created
    2022-09-13, Bo Zhang, added CsstMbiDataManager
"""
BO ZHANG's avatar
BO ZHANG committed
11
12
13
14
import unittest
from csst_common.status import CsstStatus


BO ZHANG's avatar
tweaks    
BO ZHANG committed
15
class TestCsstStatus(unittest.TestCase):
BO ZHANG's avatar
BO ZHANG committed
16
17
18
19
    def test_params(self):
        self.assertTrue(CsstStatus(0) == CsstStatus.PERFECT)
        self.assertTrue(CsstStatus(1) == CsstStatus.WARNING)
        self.assertTrue(CsstStatus(2) == CsstStatus.ERROR)