#NEWLINE# @ pytest . fixture #NEWLINE# def MockProtocol( ) : #NEWLINE# #INDENT# MockProtocolClass = mock . create_autospec ( growler . http . GrowlerHTTPProtocol ) #NEWLINE# def buildMockProtocol( app ) : #NEWLINE# #INDENT# protocol = mock . Mock ( spec = growler . http . GrowlerHTTPProtocol ) #NEWLINE# return protocol #NEWLINE# #UNINDENT# return buildMockProtocol