def print_post(self, is_valid, flags, msg):
    if (flags is not None):
        num_passed = flags.sum()
    num_valid = is_valid.sum()
    num_invalidated = (self.prev_num_valid - num_valid)
    logger.info(msg)
    if (num_invalidated == 0):
        if (flags is not None):
            logger.info(('  * num_passed = %r' % (num_passed,)))
        logger.info(('  * num_invalided = %r' % (num_invalidated,)))
    else:
        logger.info(('  * prev_num_valid = %r' % (self.prev_num_valid,)))
        logger.info(('  * num_valid = %r' % (num_valid,)))
    self.prev_num_valid = num_valid
def print_post(self, is_valid, flags, msg):
    if (flags is not None):
        num_passed = flags.sum()
    num_valid = is_valid.sum()
    num_invalidated = (self.prev_num_valid - num_valid)
    logger.info(msg)
    if (num_invalidated == 0):
        if (flags is not None):
            logger.info(('  * num_passed = %r' % (num_passed,)))
        logger.info(('  * num_invalided = %r' % (num_invalidated,)))
    else:
        logger.info(('  * prev_num_valid = %r' % (self.prev_num_valid,)))
        logger.info(('  * num_valid = %r' % (num_valid,)))
    self.prev_num_valid = num_valid