The AI is usually good at avoiding obvious traps (like one unit fortified on a mountain), but if the only way is through a unit on a mountain, they will attack it.
I don't know if they would go for that one hole in the mountain range, however. It would be interested to see. Anyone willing to make that in the editor and try it out?