def test_double_close(self): ctx = AIOContext(2) ctx.close() ctx.close() self.assertTrue(ctx.closed)
def test_ctx_setup(self): ctx = AIOContext(2) ctx.close() self.assertTrue(ctx.closed)