Same error conditions, just fewer lines, and expect rather than assert