#NEWLINE# def test_create_trigger_bad_plugin_type( self , scheduler ) : #NEWLINE# #INDENT# scheduler . _trigger_classes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# scheduler . _trigger_plugins = { #NEWLINE# #INDENT# 'dummy' : MagicMock ( return_value = object ) , #NEWLINE# #UNINDENT# } #NEWLINE# exc = pytest . raises ( TypeError , scheduler . _create_trigger , 'dummy' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( str ( exc . value ) == 'The trigger entry point does not point to a trigger class' )