'tests that python_classes and python_functions config options work
as prefixes and glob-like patterns (issue #600).'

def test_class_and_functions_discovery_using_glob(self, testdir):

    testdir.makeini('\n                                                [pytest]\n                                                python_classes    =    *Suite    Test\n                                                python_functions    =    *_test    test\n                                ')
    p = testdir.makepyfile('\n                                                class    MyTestSuite(object):\n                                                                def    x_test(self):\n                                                                                pass\n\n                                                class    TestCase(object):\n                                                                def    test_y(self):\n                                                                                pass\n                                ')
    (items, reprec) = testdir.inline_genitems(p)
    ids = [x.getmodpath() for x in items]
    assert (ids == ['MyTestSuite.x_test', 'TestCase.test_y'])
