python - Compare two lists, dictionaries in easy way -
how compare 2 lists or dictionaries in easy way,
eg.
assert orig_list == new_list
if want check 2 lists in python nose tests,
is there built-in function can let me use?
does compare 2 lists bad practice when doing testing ?(because i've never see it)
if there no built-in, plugin in nose, there handy package can me.
you can use assertlistequal(a, b) , assertdictequal(a, b) unittest
library.
Comments
Post a Comment