import doctest


def file_passes(filename):
    """
    tests the doctests in the file given
    :param filename: the code file being tested
    :return: True if no failures, False if failures
    """
    (failure_count, test_count) = doctest.testfile(filename)
    if failure_count == 0:
        return True
    else:
        return False