test_status.py 309 Bytes
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
import unittest
from csst_common.status import CsstStatus


BO ZHANG's avatar
tweaks    
BO ZHANG committed
5
class TestCsstStatus(unittest.TestCase):
BO ZHANG's avatar
BO ZHANG committed
6
7
8
9
    def test_params(self):
        self.assertTrue(CsstStatus(0) == CsstStatus.PERFECT)
        self.assertTrue(CsstStatus(1) == CsstStatus.WARNING)
        self.assertTrue(CsstStatus(2) == CsstStatus.ERROR)