#NEWLINE# def test_setUpModule( testdir ) : #NEWLINE# #INDENT# testpath = testdir . makepyfile ( '\n        l = []\n\n        def setUpModule():\n            l.append(1)\n\n        def tearDownModule():\n            del l[0]\n\n        def test_hello():\n            assert l == [1]\n\n        def test_world():\n            assert l == [1]\n        ' ) #NEWLINE# result = testdir . runpytest ( testpath ) #NEWLINE# result . stdout . fnmatch_lines ( [ '*2 passed*' ] )