Conditions | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
1 | # pylint: disable=unused-variable,expression-not-assigned |
||
10 | def describe_launch(): |
||
11 | |||
12 | @patch('platform.system', Mock(return_value="Windows")) |
||
13 | @patch('gdm.system._launch_windows') |
||
14 | def it_opens_files(startfile): |
||
15 | system.launch("fake/path") |
||
16 | expect(startfile.mock_calls) == [call("fake/path")] |
||
17 | |||
18 | @patch('platform.system', Mock(return_value="fake")) |
||
19 | def it_raises_an_exception_when_platform_is_unknown(): |
||
20 | with expect.raises(RuntimeError): |
||
21 | system.launch(None) |
||
22 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.