def METHOD_NAME(self, m_run_command, m_fail_json):
    ca_test_common.set_module_args(self.fake_module.params)
    m_fail_json.side_effect = ca_test_common.fail_json
    get_rc = 2
    get_stderr = 'Error ENOENT: User {} does not exist.'.format(self.fake_user)
    get_stdout = ''
    create_rc = 22
    create_stderr = 'Error EINVAL: Password is too weak.'
    create_stdout = ''
    m_run_command.side_effect = [
        (get_rc, get_stdout, get_stderr),
        (create_rc, create_stdout, create_stderr)
    ]
    with pytest.raises(ca_test_common.AnsibleFailJson) as result:
        ceph_dashboard_user.main()
    result = result.value.args[0]
    assert result['msg'] == create_stderr
    assert result['rc'] == 1