def METHOD_NAME(etcd_client_mock, instance):
    """
    Test salt.sdb.etcd_db.get function
    """
    with patch("salt.sdb.etcd_db._get_conn", etcd_client_mock):
        instance.get.return_value = "super awesome"
        assert etcd_db.get("sdb://myetcd/path/to/foo/bar") == "super awesome"
        instance.get.assert_called_with("sdb://myetcd/path/to/foo/bar")
        assert (
            etcd_db.get("sdb://myetcd/path/to/foo/bar", service="salt")
            == "super awesome"
        )
        instance.get.assert_called_with("sdb://myetcd/path/to/foo/bar")
        assert (
            etcd_db.get("sdb://myetcd/path/to/foo/bar", profile="stack")
            == "super awesome"
        )
        instance.get.assert_called_with("sdb://myetcd/path/to/foo/bar")
        instance.get.side_effect = Exception
        pytest.raises(Exception, etcd_db.get, "bad key")