#NEWLINE# def test_suite_schema( s ) : #NEWLINE# #INDENT# 'Make sure the schema is structured as expected' #NEWLINE# assert isinstance ( s . schema , dict ) #NEWLINE# assert ( s . schema [ 'title' ] == 'Sondra-Based API' ) #NEWLINE# assert ( s . schema [ 'id' ] == 'http://localhost:5000/api;schema' ) #NEWLINE# assert ( s . schema [ 'description' ] == ( s . __doc__ or '*No description provided.*' ) ) #NEWLINE# assert all ( [ ( s . schema [ 'applications' ] [ k ] == v . url ) for ( k , v ) in s . items ( ) ] ) #NEWLINE# assert ( 'point' in s . schema [ 'definitions' ] ) #NEWLINE# assert ( 'concreteSuiteDefn' in s . schema [ 'definitions' ] )