(self)
| 406 | mocked_datetime.reset_mock() |
| 407 | |
| 408 | def test_parsing_asctime(self): |
| 409 | parsed = parse_http_date("Sun Nov 6 08:49:37 1994") |
| 410 | self.assertEqual( |
| 411 | datetime.fromtimestamp(parsed, UTC), |
| 412 | datetime(1994, 11, 6, 8, 49, 37, tzinfo=UTC), |
| 413 | ) |
| 414 | |
| 415 | def test_parsing_asctime_nonascii_digits(self): |
| 416 | """Non-ASCII unicode decimals raise an error.""" |
nothing calls this directly
no test coverage detected