(self, s)
| 369 | |
| 370 | class OutputTestCase(unittest.TestCase): |
| 371 | def normalize_calendar(self, s): |
| 372 | # Filters out locale dependent strings |
| 373 | def neitherspacenordigit(c): |
| 374 | return not c.isspace() and not c.isdigit() |
| 375 | |
| 376 | lines = [] |
| 377 | for line in s.splitlines(keepends=False): |
| 378 | # Drop texts, as they are locale dependent |
| 379 | if line and not filter(neitherspacenordigit, line): |
| 380 | lines.append(line) |
| 381 | return lines |
| 382 | |
| 383 | def check_htmlcalendar_encoding(self, req, res): |
| 384 | cal = calendar.HTMLCalendar() |
no test coverage detected