Home | History | Annotate | Download | only in test

Lines Matching refs:pattern

118         # Test TimeRE.pattern
119 pattern_string = self.time_re.pattern(r"%a %A %d")
121 "did not find abbreviated weekday in pattern string '%s'" %
124 "did not find full weekday in pattern string '%s'" %
127 "did not find 'd' directive pattern string '%s'" %
133 pattern_string = self.time_re.pattern("\d+")
148 (compiled.pattern, "%s %s" % (self.locale_time.a_weekday[4],
154 (found.string, found.re.pattern, found.group('a'),
162 compiled.pattern))
169 self.assertEqual(_strptime.TimeRE(test_locale).pattern("%Z"), '',
170 "with timezone == ('',''), TimeRE().pattern('%Z') != ''")
192 # When pattern contains whitespace, make sure it is taken into account
195 pattern = self.time_re.pattern('%j %H')
196 self.assertFalse(re.match(pattern, "180"))
197 self.assertTrue(re.match(pattern, "18 0"))