'Test staff user can search cohort and public content if selected from preview menu.'

def test_cohorted_search_user_staff_masquerade_cohort_content(self):

    self._auto_auth(self.staff_user['username'], self.staff_user['email'], False)
    self._goto_staff_page().set_staff_view_mode(('Learner    in    ' + self.content_group_a))
    search_results = self._search_for_term(self.visible_to_all_html)
    assert (self.visible_to_all_html in search_results)
    search_results = self._search_for_term(self.group_a_and_b_html)
    assert (self.group_a_and_b_html in search_results)
    search_results = self._search_for_term(self.group_a_html)
    assert (self.group_a_html in search_results)
    search_results = self._search_for_term(self.group_b_html)
    assert (self.group_b_html not in search_results)
