#NEWLINE# def test_consider_env_plugin_instantiation( self , testdir , monkeypatch , pytestpm ) : #NEWLINE# #INDENT# testdir . syspathinsert ( ) #NEWLINE# testdir . makepyfile ( xy123 = '#' ) #NEWLINE# monkeypatch . setitem ( os . environ , 'PYTEST_PLUGINS' , 'xy123' ) #NEWLINE# l1 = len ( pytestpm . get_plugins ( ) ) #NEWLINE# pytestpm . consider_env ( ) #NEWLINE# l2 = len ( pytestpm . get_plugins ( ) ) #NEWLINE# assert ( l2 == ( l1 + 1 ) ) #NEWLINE# assert pytestpm . get_plugin ( 'xy123' ) #NEWLINE# pytestpm . consider_env ( ) #NEWLINE# l3 = len ( pytestpm . get_plugins ( ) ) #NEWLINE# assert ( l2 == l3 )