#NEWLINE# def test_umount_fs_error_lazy_false( self , mock_exec ) : #NEWLINE# #INDENT# mock_exec . side_effect = [ None , errors . ProcessExecutionError ( 'message' ) ] #NEWLINE# expected_calls = [ mock . call ( 'mountpoint' , '-q' , '/fake' , check_exit_code = [ 0 ] ) , mock . call ( 'umount' , '/fake' , check_exit_code = [ 0 ] ) ] #NEWLINE# self . assertRaises ( errors . ProcessExecutionError , fu . umount_fs , '/fake' , try_lazy_umount = False ) #NEWLINE# self . assertEqual ( expected_calls , mock_exec . call_args_list )