'L{File.render} raises L{UnsupportedMethod} in response to a non-I{GET},
non-I{HEAD} request.'

def test_invalidMethod(self):

    request = DummyRequest([''])
    request.method = 'POST'
    path = FilePath(self.mktemp())
    path.setContent('foo')
    file = static.File(path.path)
    self.assertRaises(UnsupportedMethod, file.render, request)
