(self)
| 201 | " properly escaped") |
| 202 | |
| 203 | def test_whitespace_substitution(self): |
| 204 | # When pattern contains whitespace, make sure it is taken into account |
| 205 | # so as to not allow subpatterns to end up next to each other and |
| 206 | # "steal" characters from each other. |
| 207 | pattern = self.time_re.pattern('%j %H') |
| 208 | self.assertFalse(re.match(pattern, "180")) |
| 209 | self.assertTrue(re.match(pattern, "18 0")) |
| 210 | |
| 211 | |
| 212 | class StrptimeTests(unittest.TestCase): |
nothing calls this directly
no test coverage detected