Automatic Testing For The Generator Function In Python With Parameters