def test_exists_links():
    with db_connection.env(login_active=False):
        req = app.request('/links', 'GET')
        assert req.status == "200 OK"
        req = app.request('/links', 'POST')
        assert req.status == "405 Method Not Allowed"