[#1484] Switch to nose.tools.eq_ instead of assert

In causes where equality is being checked with assert, use nose.tools.eq_. Fixes #1484.