def METHOD_NAME(self, db):
    db.add_callinfo("file", "key", (1, 2), 3)
    call_infos = list(db.get_callinfos("file", "key"))
    self.assertEqual(1, len(call_infos))
    self.assertEqual((1, 2), call_infos[0].get_parameters())
    self.assertEqual(3, call_infos[0].get_returned())