#NEWLINE# def test_preparation_step_is_not_rolled_back_and_error_raised( self ) : #NEWLINE# #INDENT# migration = mock_out_task ( ) #NEWLINE# preparation = mock_out_task ( throws_exception = True ) #NEWLINE# rollback = mock_out_task ( ) #NEWLINE# s = scheduler . Scheduler ( migration = [ migration ] , preparation = [ preparation ] , rollback = [ rollback ] ) #NEWLINE# s . start ( ) #NEWLINE# assert s . run . called #NEWLINE# assert ( not rollback . run . called ) #NEWLINE# assert ( not migration . run . called )