#NEWLINE# def test_data_fetched_since( self ) : #NEWLINE# #INDENT# master = l3_queue . ExclusiveRouterProcessor ( FAKE_ID ) #NEWLINE# self . assertEqual ( datetime . datetime . min , master . _get_router_data_timestamp ( ) ) #NEWLINE# ts1 = ( datetime . datetime . utcnow ( ) - datetime . timedelta ( seconds = 10 ) ) #NEWLINE# ts2 = datetime . datetime . utcnow ( ) #NEWLINE# master . fetched_and_processed ( ts2 ) #NEWLINE# self . assertEqual ( ts2 , master . _get_router_data_timestamp ( ) ) #NEWLINE# master . fetched_and_processed ( ts1 ) #NEWLINE# self . assertEqual ( ts1 , master . _get_router_data_timestamp ( ) ) #NEWLINE# master . __exit__ ( None , None , None )