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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -