[MRG] modernize some of the asserts

Some of the deprecated unittest aliases are replaced in this PR.

I haven't touched `assert_`, `assertEquals` and `failIf` for no particular reason.