def METHOD_NAME(self):
    messages = self.view.get_upsell_messages(self.basket)
    for message_data in messages:
        # E.g. message data:
        # {
        #     'message': 'Buy 1 more product from All products',
        #     'offer': <ConditionalOffer: Test offer #1>
        # }.
        self.assertIsNotNone(message_data["message"])
        self.assertIsNotNone(message_data["offer"])