def test_disabled_class():
col = py.test.collect.Module(datadir.join('disabled.py'))
l = col.run()
assert len(l) == 1
colitem = col.join(l[0])
assert isinstance(colitem, py.test.collect.Class)
-> assert not colitem.run()