RESULT_SEVERITYTest.test_str_conversion()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
import unittest
2
3
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
4
5
6
class RESULT_SEVERITYTest(unittest.TestCase):
7
8
    def test_str_conversion(self):
9
        self.assertEqual("INFO",
10
                         RESULT_SEVERITY.__str__(RESULT_SEVERITY.INFO))
11
        self.assertEqual("NORMAL",
12
                         RESULT_SEVERITY.__str__(RESULT_SEVERITY.NORMAL))
13
        self.assertEqual("MAJOR",
14
                         RESULT_SEVERITY.__str__(RESULT_SEVERITY.MAJOR))
15