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