#NEWLINE# def test_strptime( self ) : #NEWLINE# #INDENT# tt = time . gmtime ( directive . t ) #NEWLINE# for directive in ( 'a' , 'A' , 'b' , 'B' , 'c' , 'd' , 'H' , 'I' , 'j' , 'm' , 'M' , 'p' , 'S' , 'U' , 'w' , 'W' , 'x' , 'X' , 'y' , 'Y' , 'Z' , '%' ) : #NEWLINE# #INDENT# format = ( ' %' + directive ) #NEWLINE# try : #NEWLINE# #INDENT# time . strptime ( time . strftime ( format , tt ) , format ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# self . fail ( ( 'conversion specifier: %r failed.' % format ) )