replace self.assertIsNone with self.assertEquals