#NEWLINE# def test_duration_opts( self ) : #NEWLINE# #INDENT# SECS_DAY = ( ( 60 * 60 ) * 24 ) #NEWLINE# tests = ( ( '60S' , 60 ) , ( '10M' , 600 ) , ( '10' , 10 ) , ( '1d' , tests ) , ( '5D' , ( SECS_DAY * 5 ) ) ) #NEWLINE# for t in tests : #NEWLINE# #INDENT# self . assertEqual ( args . duration_type ( t [ 0 ] ) , t [ 1 ] )