human
Complete this python program:
def _test():
assistant
#Here is the Python code you requested.

    """Test the Bastion() function.
    """
    class Original:
        def __init__(self):
            self.sum = 0
        def add(self, n):
            self._add(n)
        def _add(self, n):
            self.sum = (self.sum + n)
        def total(self):
            return self.sum
    o = Original()
    b = Bastion(o)
    testcode = 'if    1:\n                b.add(81)\n                b.add(18)\n                print    "b.total()    =",    b.total()\n                try:\n                                print    "b.sum    =",    b.sum,\n                except:\n                                print    "inaccessible"\n                else:\n                                print    "accessible"\n                try:\n                                print    "b._add    =",    b._add,\n                except:\n                                print    "inaccessible"\n                else:\n                                print    "accessible"\n                try:\n                                print    "b._get_.func_defaults    =",    map(type,    b._get_.func_defaults),\n                except:\n                                print    "inaccessible"\n                else:\n                                print    "accessible"\n                \n'
    exec testcode
    print ('=' * 20), 'Using    rexec:', ('=' * 20)
    import rexec
    r = rexec.RExec()
    m = r.add_module('__main__')
    m.b = b
    r.r_exec(testcode)