def _get_testname(test_path):
    """Get test name out of full test path."""
    path_end = test_path.find('.py/')
    if path_end:
        offset = path_end + 4
        return test_path[offset:]
    return None
