Lines Matching refs:directive
33 def compare_against_time(self, testing, directive, tuple_position,
35 """Helper method that tests testing against directive based on the
39 strftime_output = time.strftime(directive, self.time_tuple).lower()
131 "did not find 'd' directive pattern string '%s'" %
161 for directive in ('a','A','b','B','c','d','G','H','I','j','m','M','p',
163 compiled = self.time_re.compile("%" + directive)
164 found = compiled.match(time.strftime("%" + directive))
166 (time.strftime("%" + directive),
261 def helper(self, directive, position):
263 strf_output = time.strftime("%" + directive, self.time_tuple)
264 strp_output = _strptime._strptime_time(strf_output, "%" + directive)
266 "testing of '%s' directive failed; '%s' -> %s != %s" %
267 (directive, strf_output, strp_output[position],
272 for directive in ('y', 'Y'):
273 self.helper(directive, 0)
285 for directive in ('B', 'b', 'm'):
286 self.helper(directive, 1)
298 "testing of '%%I %%p' directive failed; '%s' -> %s != %s" %
318 for directive in ('A', 'a', 'w', 'u'):
319 self.helper(directive,6)
421 # Test %c directive
426 # Test %x directive
431 # Test %X directive