va_test_connection.py 319 Bytes
Newer Older
1 2 3
# VA is used as a singleton.
# You can access va in every script, function and method.

4
print( "Testing va extension connection." )
5 6 7 8 9 10 11 12 13 14 15 16

import va

if( va.connect( "localhost", 12340 ) )
	print( "Successfully connected" )
else
	print( "Connection failed" )

if( va.is_connected() )
	va.disconnect()
	
print( "Test done." )