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

def assert_unit_link_event(self, usage_id, view):

    actual_events = self.wait_for_events(event_filter={'event_type': 'edx.course.student_notes.used_unit_link'}, number_of_matches=1)
    expected_events = [{'event': {'component_usage_id': usage_id, 'view': view}}]
    self.assert_events_match(expected_events, actual_events)
