#NEWLINE# def test_load_extensions( self , iter_entry_points_mock ) : #NEWLINE# #INDENT# mock_entry_point = mock . Mock ( ) #NEWLINE# mock_entry_point . load . return_value = DummyExtension #NEWLINE# iter_entry_points_mock . return_value = [ mock_entry_point ] #NEWLINE# expected = ext . ExtensionData ( any_testextension , iter_entry_points_mock , IsA ( config . ConfigSchema ) , any_unicode , None ) #NEWLINE# assert ( ext . load_extensions ( ) == [ expected ] )