#NEWLINE# def test_multiple_drivers( self ) : #NEWLINE# #INDENT# extensions = [ extension . Extension ( 'backend' , pkg_resources . EntryPoint . parse ( 'backend = pkg1:driver' ) , 'pkg backend' , None ) , extension . Extension ( 'backend' , pkg_resources . EntryPoint . parse ( 'backend = pkg2:driver' ) , 'pkg backend' , None ) ] #NEWLINE# try : #NEWLINE# #INDENT# dm = driver . DriverManager . make_test_instance ( extensions [ 0 ] ) #NEWLINE# dm . _init_plugins ( extensions ) #NEWLINE# #UNINDENT# except exception . MultipleMatches as err : #NEWLINE# #INDENT# self . assertIn ( 'Multiple' , str ( err ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Should have had an error' )