| Conditions | 2 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import platform |
||
| 18 | @patch('platform.linux_distribution', return_value=('bad_os',)) |
||
| 19 | def test_install_command_mock_incompatible_os(self, call_mock): |
||
| 20 | self.assertEqual(platform.linux_distribution()[0], 'bad_os') |
||
| 21 | with self.assertRaises(OSError): |
||
| 22 | DistributionRequirement( |
||
| 23 | dnf='libclang', apt_get='libclangs').install_command() |
||
| 24 |