def test_404():
    with db_connection.env(login_active=False):
        req = app.request('/invalidendpoint', method='GET')
        assert req.status == "404 Not Found"
        req = app.request('/invalidendpoint', method='POST')
        assert req.status == "404 Not Found"