Fix broken tests

Replace nonexistent module-level functions with the correct `tm.TestCase` methods.

This testing API is confusing.  Is there a reason `testing` has both module-level and instance-level assertion methods?