def test_initsession(self):
config = py.test.config._reparse([self.tmpdir])
-> session = config.initsession()
assert session.config is config