def METHOD_NAME(self, mock_repo, params):
    r = mock_repo(**params)
    r._delete_all()
    m = MockObj("uuid", "foo")
    r._save(m)
    m1 = r._search("name", "bar")
    m2 = r._search("name", "foo")
    assert m1 == []
    assert m2 == [m]