#NEWLINE# def test_get_receivers_list_raises_unless_GitSource( self ) : #NEWLINE# #INDENT# class WF ( object ) : #NEWLINE# #INDENT# source = None #NEWLINE# #UNINDENT# p = SendMailPlugin ( None , WF ( ) ) #NEWLINE# flexmock ( p ) . should_receive ( '_get_component_label' ) . and_return ( 'foo' ) #NEWLINE# with pytest . raises ( PluginFailedException ) as e : #NEWLINE# #INDENT# p . _get_receivers_list ( ) #NEWLINE# #UNINDENT# assert ( str ( p . value ) == 'Source is not of type "GitSource", panic!' )