def METHOD_NAME(self):
    app = flask.Flask(__name__)
    called = []
    @app.teardown_request
    def remember(error):
        called.append(error)
    with app.test_client() as c:
        self.assert_equal(called, [])
        c.get('/')
        self.assert_equal(called, [])
    self.assert_equal(called, [None])
    del called[:]
    with app.test_client() as c:
        self.assert_equal(called, [])
        c.get('/')
        self.assert_equal(called, [])
        c.get('/')
        self.assert_equal(called, [None])
    self.assert_equal(called, [None, None])