please use self.assertX.

assert gets ignored when run in optimized mode.