RESULT_SEVERITYTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_str_conversion() 0 7 1
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