def METHOD_NAME(self):
    with replace_by(None):
        init()
        # We can't use assertNotWrapped here because replace_by(None)
        # changes stdout/stderr already.
        self.assertIsNone(sys.stdout)
        self.assertIsNone(sys.stderr)