| Conditions | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | # pylint: disable=unused-variable,expression-not-assigned |
||
| 10 | def describe_launch(): |
||
| 11 | |||
| 12 | @patch('platform.system', Mock(return_value="Windows")) |
||
| 13 | @patch('gitman.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 |