Texas Instruments interview question

Python questions, how would i do assertion testing