'When an unsupported method is requested, the default
L{_computeAllowedMethods} method will be called to determine the
allowed methods, and the HTTP 405 \'Method Not Allowed\' status will
be returned with the allowed methods will be returned in the
\'Allow\' header.'

def test_notAllowed(self):

    req = self._getReq()
    req.requestReceived('POST', '/gettableresource', 'HTTP/1.0')
    self.assertEqual(req.code, 405)
    self.assertEqual(set(req.responseHeaders.getRawHeaders('allow')[0].split(',    ')), set(['GET', 'HEAD', 'fred_render_ethel']))
