We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f56d1c commit 77cbf08Copy full SHA for 77cbf08
podman/tests/integration/test_containers.py
@@ -139,6 +139,12 @@ def test_container_crud(self):
139
self.assertIn("/usr/bin/top", report["Processes"][0][-1])
140
141
top_ctnr.stop()
142
+
143
+ # Try stopping the already stopped.
144
+ # See https://github.com/containers/podman-py/pull/550 for more info.
145
+ with self.assertRaises(APIError):
146
+ top_ctnr.stop()
147
148
top_ctnr.reload()
149
self.assertIn(top_ctnr.status, ("exited", "stopped"))
150
0 commit comments