@pytest.mark.usefixtures('sql_session')
def test_known_id():
    balloon = BalloonModel(figure=u'Giraffe')
    Session.add(balloon)
    Session.flush()
    config = Configurator()
    config.include('rest_toolkit')
    config.scan('resource_sql')
    app = make_app(config)
    r = app.get('/balloons/%s' % balloon.id)
    assert r.json['figure'] == u'Giraffe'
dataset/ETHPy150Open wichert/rest_toolkit/tests/ext/test_sql.py/test_known_id/original