Economic pressure is testing Iran where it is weakest and sharpening divisions within its leadership.