'Waits for the publish title to change to the expected value.'

def verify_publish_title(self, expected_title):

    def wait_for_title_change():
        '\n                                                Promise    function    to    check    publish    title.\n                                                '
        return ((self.publish_title == expected_title), self.publish_title)
    Promise(wait_for_title_change, (("Publish    title    incorrect.    Found    '" + self.publish_title) + "'")).fulfill()
