def testExceptions(self):
        request = roots.Request()
        try:
            request.write(b"blah")
        except NotImplementedError:
            pass
        else:
            self.fail()
        try:
            request.finish()
        except __HOLE__:
            pass
        else:
            self.fail()
dataset/ETHPy150Open twisted/twisted/twisted/test/test_roots.py/RootsTests.testExceptions