def testNames(tests):
    """
    Return the id of each test within the given test suite or case.
    """
    names = []
    for test in _iterateTests(tests):
        names.append(test.id())
    return names

    Return the id of each test within the given test suite or case.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_loader.py