'Verifies that the correct searched event was captured for the Notes page.'

def assert_search_event(self, search_string, number_of_results):

    actual_events = self.wait_for_events(event_filter={'event_type': 'edx.course.student_notes.searched'}, number_of_matches=1)
    expected_events = [{'event': {'search_string': search_string, 'number_of_results': number_of_results}}]
    self.assert_events_match(expected_events, actual_events)
