

def flattenToTestCases(suite):
    if (isinstance(suite, list) or isinstance(suite, unittest.TestSuite)):
        return sum([flattenToTestCases(suite) for x in suite], [])
    return [suite]

dataset/ETHPy150Open ufora/ufora/ufora/test/UnitTestCommon.py flattenToTestCases/VarMisuse@37/48 `x`->`suite`