Skip to content

Commit 77cbf08

Browse files
committed
Add test for Don't try to parse the response json when not_modified containers#550
1 parent 9f56d1c commit 77cbf08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

podman/tests/integration/test_containers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ def test_container_crud(self):
139139
self.assertIn("/usr/bin/top", report["Processes"][0][-1])
140140

141141
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+
142148
top_ctnr.reload()
143149
self.assertIn(top_ctnr.status, ("exited", "stopped"))
144150

0 commit comments

Comments
 (0)