""" Test that we can acquire and release vessels in secure mode. """ import seash import sys # We need the modules module import seash_modules import seash_dictionary #pragma out Added group 'acquired' with 5 targets #pragma out acquired (empty) seash_modules.enable_modules_from_last_session(seash_dictionary.seashcommanddict) commands = [ 'enable clearinghouse', 'loadkeys seash_gettest', 'as seash_gettest', 'get 5', 'on acquired', 'release acquired', 'show targets', ] # Allow the geoip module to be disabled when done, # even if exceptions occur try: seash.command_loop(commands) except Exception, e: print>>sys.stderr, str(e)
""" Test that we can acquire and release vessels in insecure mode. """ import seash import sys # We need the modules module import seash_modules import seash_dictionary #pragma out Added group 'acquired' with 5 targets #pragma out acquired (empty) seash_modules.enable_modules_from_last_session( seash_dictionary.seashcommanddict) commands = [ 'enable clearinghouse', 'loadkeys seash_gettest', 'as seash_gettest', 'get insecure 5', 'on acquired', 'release insecure acquired', 'show targets', ] # Allow the geoip module to be disabled when done, # even if exceptions occur try: seash.command_loop(commands) except Exception, e: