def METHOD_NAME(self, image):
    if image:
        expected_cmd = self.fake_container_cmd
    else:
        expected_cmd = [self.fake_binary]
    assert ca_common.pre_generate_cmd(self.fake_binary, image) == expected_cmd  # noqa: E501