import re


def parse_cnn_logs(filename):
    """Given a cnn log, return the number of true positives, and total test cases"""
    with open(filename, 'r') as handle:
        lines = [l.rstrip() for l in handle]
    summary_line = lines[-1]
    fraction = re.findall(r"[0-9]. \/ [0-9].$", summary_line).pop()
    tp, total = fraction.split("/")
    tp, total = int(tp), int(total)
    return tp, total