#NEWLINE# def test_connect( ) : #NEWLINE# #INDENT# a = connect ( hostname = 'localhost' ) #NEWLINE# b = connect ( hostname = 'localhost' ) #NEWLINE# assert ( a is b ) #NEWLINE# a . close ( ) #NEWLINE# c = connect ( hostname = 'localhost' ) #NEWLINE# assert ( a is c ) #NEWLINE# assert ( c . get_transport ( ) and c . get_transport ( ) . is_active ( ) )