test_sublinput.MyTestCase.test_string()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 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