Just looking at the screen does not unlock the device as you still need to swipe up to close the lockscreen. Before that, it does exactly as you describe, shows a glance on the lockscreen.
To clarify, it does unlock the phone - i.e. you are authenticated as you after you look at it - but you're right that it doesn't open the full message unless you tap on the notification.