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