import isystem.connect as ic
def test_isAttached():
connMgr = ic.ConnectionMgr()
cfg = ic.CConnectionConfig()
cfg.start_always()
print("Connecting...")
connMgr.connect(cfg)
print(f"\tIs attached: {connMgr.isAttached()}")
print("Disconnecting...")
connMgr.disconnect_close(bSaveAll=False)
print(f"\tIs attached: {connMgr.isAttached()}")
if __name__ == "__main__":
test_isAttached()