#NEWLINE# def test_log_progress_if_required( self ) : #NEWLINE# #INDENT# self . mox . StubOutWithMock ( vm_utils . LOG , 'debug' ) #NEWLINE# vm_utils . LOG . debug ( 'Sparse copy in progress, %(complete_pct).2f%% complete. %(left)s bytes left to copy' , { #NEWLINE# #INDENT# 'complete_pct' : 50.0 , #NEWLINE# 'left' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# current = timeutils . utcnow ( ) #NEWLINE# time_fixture = self . useFixture ( utils_fixture . TimeFixture ( current ) ) #NEWLINE# time_fixture . advance_time_seconds ( ( vm_utils . PROGRESS_INTERVAL_SECONDS + 1 ) ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# vm_utils . _log_progress_if_required ( 1 , current , 2 )