def test_invalidMethod(self):
    '\n        L{File.render} raises L{UnsupportedMethod} in response to a non-I{GET},\n        non-I{HEAD} request.\n        '
    request = DummyRequest([b''])
    request.method = b'POST'
    path = FilePath(self.mktemp())
    path.setContent(b'foo')
    file = static.File(path.path)
    self.assertRaises(UnsupportedMethod, file.render, request)
L{File.render} raises L{UnsupportedMethod} in response to a non-I{GET},
non-I{HEAD} request.
def test_invalidMethod(self):
    '\n        L{File.render} raises L{UnsupportedMethod} in response to a non-I{GET},\n        non-I{HEAD} request.\n        '
    request = DummyRequest([b])
    request.method = b'POST'
    path = FilePath(self.mktemp())
    path.setContent(b'foo')
    file = static.File(path.path)
    self.assertRaises(UnsupportedMethod, file.render, request)