#NEWLINE# def test_resource_schema_no_body( self ) : #NEWLINE# #INDENT# resource = Mock ( body = None ) #NEWLINE# with pytest . raises ( ValueError ) as ex : #NEWLINE# #INDENT# utils . resource_schema ( resource ) #NEWLINE# #UNINDENT# expected = 'RAML resource has no body to setup database' #NEWLINE# assert ( expected in str ( self . value ) )