'Wait until the message of the requested type is as expected.'

def wait_for_message(self, message_type, expected_message):

    self._wait_for((lambda : (self.message(message_type) == expected_message)), 'Waiting    for    message    update.')
