#NEWLINE# def test_parse_absolute_positive_offset( self ) : #NEWLINE# #INDENT# str = '070927233429848+' #NEWLINE# dt = smpp_time . parse ( str ) #NEWLINE# self . assertEquals ( 2007 , dt . year ) #NEWLINE# self . assertEquals ( 9 , dt . month ) #NEWLINE# self . assertEquals ( 27 , dt . day ) #NEWLINE# self . assertEquals ( 23 , dt . hour ) #NEWLINE# self . assertEquals ( 34 , dt . minute ) #NEWLINE# self . assertEquals ( 29 , dt . second ) #NEWLINE# self . assertEquals ( 800000 , dt . microsecond ) #NEWLINE# self . assertEquals ( timedelta ( hours = 12 ) , dt . tzinfo . utcoffset ( None ) ) #NEWLINE# self . assertEquals ( str , smpp_time . unparse ( dt ) )