def METHOD_NAME(self, image):
    sub_cmd = ['osd', 'pool']
    args = ['create', 'foo']
    if image:
        expected_cmd = self.fake_container_cmd
    else:
        expected_cmd = [self.fake_binary]
    expected_cmd.extend([
        '-n', 'client.foo',
        '-k', '/etc/ceph/foo.client.foo.keyring',
        '--cluster',
        'foo',
        'osd', 'pool',
        'create', 'foo'
    ])
    result = ca_common.generate_cmd(sub_cmd=sub_cmd, args=args, cluster='foo', user='client.foo', container_image=image)  # noqa: E501
    assert result == expected_cmd