#NEWLINE# def test_parse_duration_1( ) : #NEWLINE# #INDENT# ( sign , d ) = parse_duration ( '-P1Y3M5DT7H10M3.3S' ) #NEWLINE# assert ( sign == '-' ) #NEWLINE# assert ( d [ 'tm_sec' ] == 3.3 ) #NEWLINE# assert ( d [ 'tm_mon' ] == 3 ) #NEWLINE# assert ( d [ 'tm_hour' ] == 7 ) #NEWLINE# assert ( d [ 'tm_mday' ] == 5 ) #NEWLINE# assert ( d [ 'tm_year' ] == 1 ) #NEWLINE# assert ( d [ 'tm_min' ] == 10 )