#NEWLINE# def test_step_size( self ) : #NEWLINE# #INDENT# DAY = ( ( 60 * 60 ) * 24 ) #NEWLINE# rt = RelativeTime ( DAY ) #NEWLINE# assert_equals ( DAY , rt . step_size ( ) ) #NEWLINE# assert_equals ( DAY , rt . step_size ( 0 , 0 ) ) #NEWLINE# assert_equals ( DAY , rt . step_size ( 0 , 0 ) ) #NEWLINE# assert_equals ( DAY , rt . step_size ( 0 , ( DAY / 2 ) ) ) #NEWLINE# assert_equals ( DAY , rt . step_size ( 0 , ( DAY - 1 ) ) ) #NEWLINE# assert_equals ( ( 2 * DAY ) , rt . step_size ( 0 , DAY ) ) #NEWLINE# assert_equals ( ( 2 * DAY ) , rt . step_size ( 0 , ( DAY + ( ( 60 * 60 ) * 1 ) ) ) ) #NEWLINE# assert_equals ( ( 3 * DAY ) , rt . step_size ( 0 , ( ( 2 * self ) + 1 ) ) ) #NEWLINE# assert_equals ( ( 2 * DAY ) , rt . step_size ( ( DAY + 1 ) , ( 2 * DAY ) ) )