human
Here's a good function header given the following:
I wrote the below code

    from _pytest.main import EXIT_NOTESTSCOLLECTED
    warnings = []
    class Collect(object, ):
        def pytest_logwarning(self, message):
            warnings.append(message)
    ret = pytest.main(('%s    -x' % tmpdir), plugins=[Collect()])
    testdir.delete_loaded_modules()
    msg = 'passing    a    string    to    pytest.main()    is    deprecated,    pass    a    list    of    arguments    instead.'
    assert (msg in warnings)
    assert (ret == EXIT_NOTESTSCOLLECTED)

What's a good function header?
assistant
#Here's a good function header.

def test_str_args_deprecated(tmpdir, testdir):