test_sublinput   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 11
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A MyTestCase.test_string() 0 2 1
A MyTestCase.test_return_value() 0 3 1
1
import sublinput
2
import unittest
3
4
5
class MyTestCase(unittest.TestCase):
6
7
    def test_string(self):
8
        self.assertIsInstance(input("Testing result value :"), str)
9
10
    def test_return_value(self):
11
        return_value = input("Type 'test': ")
12
        self.assertEqual(return_value, 'test')
13
14
15
if __name__ == '__main__':
16
    unittest.main()
17