'The L{UnsupportedMethod} raised by L{Resource.render} for an unsupported
request method has a C{allowedMethods} attribute set to a list of the
methods supported by the L{Resource}, as determined by the
I{render_}-prefixed methods which it defines, if C{allowedMethods} is
not explicitly defined by the L{Resource}.'

def test_implicitAllowedMethods(self):

    expected = set(['GET', 'HEAD', 'PUT'])
    resource = ImplicitAllowedMethods()
    request = DummyRequest([])
    request.method = 'FICTIONAL'
    exc = self.assertRaises(UnsupportedMethod, resource.render, request)
    self.assertEqual(expected, set(exc.allowedMethods))
