you should use Assert.false(check_result, '%s bad links found. ' % len(check_result) + ', '.join(check_result) )