| Conditions | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import json |
||
| 27 | def test_rendering_local_shell_cmd(self): |
||
| 28 | local_shell_cmd_execution_model = json.loads( |
||
| 29 | self.get_fixture_content('local_cmd_execution.json') |
||
| 30 | ) |
||
| 31 | |||
| 32 | action = self.get_action_instance() |
||
| 33 | action._get_execution = mock.MagicMock( |
||
| 34 | return_value=local_shell_cmd_execution_model |
||
| 35 | ) |
||
| 36 | self.assertTrue(action.run(execution_id='5799522f55fc8c2d33ac03e0')) |
||
| 37 |
Prefixing a member variable
_is usually regarded as the equivalent of declaring it with protected visibility that exists in other languages. Consequentially, such a member should only be accessed from the same class or a child class: