Skip to content

Commit 5af0918

Browse files
committed
Add test for Don't try to parse the response json when not_modified #550
Signed-off-by: Jaroslav Henner <[email protected]>
1 parent 108d9f3 commit 5af0918

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

podman/tests/integration/test_containers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ 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+
top_ctnr.stop()
146+
142147
top_ctnr.reload()
143148
self.assertIn(top_ctnr.status, ("exited", "stopped"))
144149

0 commit comments

Comments
 (0)