#NEWLINE# def test_get_swagger12_objects_if_only_swagger12_version_is_present( settings , registry ) : #NEWLINE# #INDENT# registry . settings [ 'pyramid_swagger.swagger_versions' ] = [ SWAGGER_12 ] #NEWLINE# registry . settings [ 'pyramid_swagger.schema12' ] = 'schema12' #NEWLINE# ( swagger_handler , spec ) = get_swagger_objects ( settings , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , registry ) #NEWLINE# assert ( 'swagger12_handler' in str ( swagger_handler ) ) #NEWLINE# assert ( 'schema12' == spec )