use self.assertTrue rather than assert - the latter is optimized out by python in some situations