def test_push_images(self) -> None:
    client = MagicMock()
    img = MagicMock()
    client.images.get.return_value = img
    workspace = DockerWorkspace(docker_client=client)
    workspace._push_images({'sha256:hasha': ('example.com/repo', 'hasha'), 'sha256:hashb': ('example.com/repo', 'hashb')})
    self.assertEqual(client.images.get.call_count, 2)
    self.assertEqual(img.tag.call_count, 2)
    self.assertEqual(client.images.push.call_count, 2)
def test_push_images(self) -> None:
    client = MagicMock()
    img = MagicMock()
    client.images.get.return_value = img
    workspace = DockerWorkspace(docker_client=client)
    workspace._push_images({'sha256:hasha': ('example.com/repo', 'hasha'), 'sha256:hashb': ('example.com/repo', 'hashb')})
    self.assertEqual(client.images.get.call_count, 2)
    self.assertEqual(img.tag.call_count, 2)
    self.assertEqual(client.images.push.call_count, 2)