Total Complexity | 3 |
Total Lines | 14 |
Duplicated Lines | 0 % |
1 | """Package to test calls_process_factory module.""" |
||
10 | class TestCallsProcessFactory(TestCase): |
||
11 | """Class to test CallsProcessFactory.""" |
||
12 | |||
13 | def test_construct_process_linear(self): |
||
14 | """Test linear process construction.""" |
||
15 | tested_object = CallsProcessFactory("linear", 7) |
||
16 | result = tested_object.construct_process() |
||
17 | self.assertIsInstance(result, CallsProcess) |
||
18 | |||
19 | def test_construct_process_not_ex(self): |
||
20 | """Test case when structure not implemented.""" |
||
21 | tested_object = CallsProcessFactory("not_existed", 7) |
||
22 | with self.assertRaises(NotImplementedError): |
||
23 | tested_object.construct_process() |
||
24 |