def METHOD_NAME(self, app):
    c = app.test_client()
    self.assert_equal(c.get('/').data, b'GET')
    self.assert_equal(c.post('/').data, b'POST')
    self.assert_equal(c.put('/').status_code, 405)
    meths = parse_set_header(c.open('/', method='OPTIONS').headers['Allow'])
    self.assert_equal(sorted(meths), ['GET', 'HEAD', 'OPTIONS', 'POST'])