#NEWLINE# def test_pluginmanager_ENV_startup( self , testdir , monkeypatch ) : #NEWLINE# #INDENT# testdir . makepyfile ( pytest_x500 = '#' ) #NEWLINE# p = testdir . makepyfile ( "\n            import pytest\n            def test_hello(pytestconfig):\n                plugin = pytestconfig.pluginmanager.get_plugin('pytest_x500')\n                assert plugin is not None\n        " ) #NEWLINE# monkeypatch . setenv ( 'PYTEST_PLUGINS' , 'pytest_x500' , prepend = ',' ) #NEWLINE# result = testdir . runpytest ( p , syspathinsert = True ) #NEWLINE# assert ( p . ret == 0 ) #NEWLINE# result . stdout . fnmatch_lines ( [ '*1 passed*' ] )