(self)
| 125 | self.locale_time = _strptime.LocaleTime() |
| 126 | |
| 127 | def test_pattern(self): |
| 128 | # Test TimeRE.pattern |
| 129 | pattern_string = self.time_re.pattern(r"%a %A %d %Y") |
| 130 | self.assertTrue(pattern_string.find(self.locale_time.a_weekday[2]) != -1, |
| 131 | "did not find abbreviated weekday in pattern string '%s'" % |
| 132 | pattern_string) |
| 133 | self.assertTrue(pattern_string.find(self.locale_time.f_weekday[4]) != -1, |
| 134 | "did not find full weekday in pattern string '%s'" % |
| 135 | pattern_string) |
| 136 | self.assertTrue(pattern_string.find(self.time_re['d']) != -1, |
| 137 | "did not find 'd' directive pattern string '%s'" % |
| 138 | pattern_string) |
| 139 | |
| 140 | def test_pattern_escaping(self): |
| 141 | # Make sure any characters in the format string that might be taken as |
nothing calls this directly
no test coverage detected