replace self.model.db to real data in self.assertEqual