def get_testcases(leaf):
    """
    Get list of testcases of a test collection

    Returns [(title, testcase_folder), ...]
    """
    return [(item['title'], item['children'][0]['testcase']) for item in leaf['children']]