Testing Assertionerror In Python