'Bookmark a unit by clicking on Bookmark button'

def click_bookmark_unit_button(self):

    previous_state = self.bookmark_button_state
    self.q(css='.bookmark-button').first.click()
    EmptyPromise((lambda : (self.bookmark_button_state != previous_state)), 'Bookmark    button    toggled').fulfill()
