def METHOD_NAME():
    mock = MagicMock()
    with patch.object(rvm, "_check_rvm") as mock_method:
        mock_method.return_value = {"result": True}
        with patch.object(rvm, "_check_and_install_ruby", new=mock):
            rvm.installed("1.9.3", default=True)
    mock.assert_called_once_with(
        {"result": True}, "1.9.3", True, user=None, opts=None, env=None
    )