阅读背景:

Unittest的assertEqual和iterables——只检查内容

来源:互联网 

Is there a 'decent' way in unittest to check the equality of the contents of two iterable objects? I am using a lot of tuples, lists and numpy arrays and I usually only want to test for the contents and not for the type. Currently I am simply casting the type:Is there a 'decent' way in unittest to check th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: