'Selects the given cohort in the drop-down.'

def select_cohort(self, cohort_name):

    self._get_cohort_options().filter((lambda el: (self._cohort_name(el.text) == cohort_name))).first.click()
    EmptyPromise((lambda : (self.q(css='.title-value').text[0] == cohort_name)), 'Waiting    to    confirm    cohort    has    been    selected').fulfill()
