(self)
| 45 | return self.client.inspect_plugin(plugin_name) |
| 46 | |
| 47 | def test_enable_plugin(self): |
| 48 | pl_data = self.ensure_plugin_installed(SSHFS) |
| 49 | assert pl_data['Enabled'] is False |
| 50 | assert self.client.enable_plugin(SSHFS) |
| 51 | pl_data = self.client.inspect_plugin(SSHFS) |
| 52 | assert pl_data['Enabled'] is True |
| 53 | with pytest.raises(docker.errors.APIError): |
| 54 | self.client.enable_plugin(SSHFS) |
| 55 | |
| 56 | def test_disable_plugin(self): |
| 57 | pl_data = self.ensure_plugin_installed(SSHFS) |
nothing calls this directly
no test coverage detected