#NEWLINE# @ gen_test #NEWLINE# def test_simple_ssl( self ) : #NEWLINE# #INDENT# if test . env . mongod_validates_client_cert : #NEWLINE# #INDENT# raise SkipTest ( 'mongod validates SSL certs' ) #NEWLINE# #UNINDENT# if test . env . auth : #NEWLINE# #INDENT# raise SkipTest ( "can't test with auth" ) #NEWLINE# #UNINDENT# client = motor . MotorClient ( host , port , ssl = True , io_loop = self . io_loop ) #NEWLINE# ( yield client . db . collection . find_one ( ) ) #NEWLINE# response = ( yield client . admin . command ( 'ismaster' ) ) #NEWLINE# if ( 'setName' in response ) : #NEWLINE# #INDENT# client = self . motor_rsc ( ) #NEWLINE# ( yield client . db . collection . find_one ( ) )