#NEWLINE# def test_plugin_prevent_register_unregistered_alredy_registered( self , pytestpm ) : #NEWLINE# #INDENT# pytestpm . register ( 42 , name = 'abc' ) #NEWLINE# l1 = pytestpm . get_plugins ( ) #NEWLINE# assert ( 42 in l1 ) #NEWLINE# pytestpm . consider_preparse ( [ 'xyz' , '-p' , 'no:abc' ] ) #NEWLINE# l2 = pytestpm . get_plugins ( ) #NEWLINE# assert ( 42 not in l2 )