Fix generator test case.

Python now includes the function name in the generator representation.