def get_by_id_or_404(model, id, parent=None):
    obj = model.get_by_id(id, parent=parent)
    if obj:
        return obj

    abort(404)
Test _AttributeValueToString().
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/get_by_id_or_404--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testAttributeValueToString