def METHOD_NAME(self, m_run_command, m_exit_json):
    ca_test_common.set_module_args({
        'name': fake_flag,
    })
    m_exit_json.side_effect = ca_test_common.exit_json
    stdout = ''
    stderr = '{} is set'.format(fake_flag)
    rc = 0
    m_run_command.return_value = rc, stdout, stderr
    with pytest.raises(ca_test_common.AnsibleExitJson) as result:
        ceph_osd_flag.main()
    result = result.value.args[0]
    assert result['changed']
    assert result['cmd'] == [fake_container_binary, 'run', '--rm', '--net=host',
                             '-v', '/etc/ceph:/etc/ceph:z',
                             '-v', '/var/lib/ceph/:/var/lib/ceph/:z',
                             '-v', '/var/log/ceph/:/var/log/ceph/:z',
                             '--entrypoint=ceph', fake_container_image,
                             '-n', fake_user, '-k', fake_keyring,
                             '--cluster', fake_cluster, 'osd', 'set', fake_flag]
    assert result['rc'] == rc
    assert result['stderr'] == stderr
    assert result['stdout'] == stdout