Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_create(self):
img_details = self.alpine_image.inspect()
actual = self.alpine_image.container(command=["sleep", "1h"])
self.assertIsNotNone(actual)
self.assertEqual(FoldedString(actual.status), "configured")
ctnr = actual.start()
self.assertEqual(FoldedString(ctnr.status), "running")
ctnr_details = ctnr.inspect()
for e in img_details.config["env"]:
self.assertIn(e, ctnr_details.config["env"])
lambda c: podman.FoldedString(c['status']) == 'running',
self.client.containers.list())