def METHOD_NAME(self, offers):
    applied_offers = self.basket.applied_offers()
    self.assertEqual(len(offers), len(applied_offers))
    for offer in offers:
        self.assertIn(offer.id, applied_offers, msg=offer)