Unit testing a function that returns a generator object

前端 未结 2 878
故里飘歌
故里飘歌 2021-02-13 13:59

The title pretty much sums it up: I tried to use assertEqual to test a function that returns a generator object, but that results in:

AssertionError: gene

2条回答
提交回复
热议问题