def test_shutdown(self): import inspect print("# WARNING comment return below this line " \ "to test this message. Line %u" % \ inspect.currentframe().f_back.f_lineno) return connection = OrientSocket( "localhost", 2424 ) msg = ConnectMessage( connection ) print("%r" % msg.get_protocol()) assert msg.get_protocol() != -1 sid = msg.prepare( ("admin", "admin") )\ .send().fetch_response() """ alternative use session_id = msg.set_user("admin").set_pass("admin").prepare()\ .send().fetch_response() """ print("%r" % sid) assert sid != -1 shut_msg = ShutdownMessage(connection) res = shut_msg.prepare(("root", "16ABC88EB0CAEE3774E00BABB6D19E69FD3495D6BFA32CAF8AD95A64DA7415CE")).\ send().send().fetch_response() assert res[:] == []
def test_shutdown(self): import inspect print("# WARNING comment return below this line " \ "to test this message. Line %u" % \ inspect.currentframe().f_back.f_lineno) return connection = OrientSocket("localhost", 2424) msg = ConnectMessage(connection) print("%r" % msg.get_protocol()) assert msg.get_protocol() != -1 sid = msg.prepare( ("admin", "admin") )\ .send().fetch_response() """ alternative use session_id = msg.set_user("admin").set_pass("admin").prepare()\ .send().fetch_response() """ print("%r" % sid) assert sid != -1 shut_msg = ShutdownMessage(connection) res = shut_msg.prepare(("root", "16ABC88EB0CAEE3774E00BABB6D19E69FD3495D6BFA32CAF8AD95A64DA7415CE")).\ send().send().fetch_response() assert res[:] == []