'Assure test class is skipped when using `__test__=False` (See #2007).'

def test_can_skip_class_with_test_attr(self, testdir):

    testdir.makepyfile('\n                                                class    TestFoo(object):\n                                                                __test__    =    False\n                                                                def    __init__(self):\n                                                                                pass\n                                                                def    test_foo():\n                                                                                assert    True\n                                ')
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['collected    0    items', '*no    tests    ran    in*'])
