Texas Instruments Interview Question

Python questions, how would i do assertion testing