def test__getcol_global_file(self): |
x = self.tmpdir.ensure("x.py") |
config = py.test.config._reparse([x]) |
col = config._getcollector(x) |
assert isinstance(col, py.test.collect.Module) |
assert col.name == 'x.py' |
assert col.parent.name == self.tmpdir.basename |
assert col.parent.parent is None |
-> for col in col.listchain(): |
assert col._config is config |