

def test_search_cpp(self):
    if (sys.platform == 'win32'):
        return
    (pkg_dir, dist) = self.create_dist()
    cmd = config(dist)
    match = cmd.search_cpp(pattern='xxx', body='/* xxx */')
    self.assertEqual(match, 0)
    match = cmd.search_cpp(pattern='_configtest', body='/* xxx */')
    self.assertEqual(match, 1)

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/tests/test_config_cmd.py ConfigTestCase.test_search_cpp/original