MCPcopy Index your code
hub / github.com/docker/docker-py / test_disable_plugin

Method test_disable_plugin

tests/integration/api_plugin_test.py:56–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.client.enable_plugin(SSHFS)
55
56 def test_disable_plugin(self):
57 pl_data = self.ensure_plugin_installed(SSHFS)
58 assert pl_data['Enabled'] is False
59 assert self.client.enable_plugin(SSHFS)
60 pl_data = self.client.inspect_plugin(SSHFS)
61 assert pl_data['Enabled'] is True
62 self.client.disable_plugin(SSHFS)
63 pl_data = self.client.inspect_plugin(SSHFS)
64 assert pl_data['Enabled'] is False
65 with pytest.raises(docker.errors.APIError):
66 self.client.disable_plugin(SSHFS)
67
68 def test_inspect_plugin(self):
69 self.ensure_plugin_installed(SSHFS)

Callers

nothing calls this directly

Calls 4

enable_pluginMethod · 0.80
inspect_pluginMethod · 0.80
disable_pluginMethod · 0.80

Tested by

no test coverage detected