'Test that requesting bookmarks returns all records for that user.'

@patch('eventtracking.tracker.emit')
def test_get_all_bookmarks_when_course_id_not_given(self, mock_tracker):

    response = self.send_get(client=self.client, url=reverse('bookmarks'))
    bookmarks_data = response.data['results']
    self.assertEqual(len(bookmarks_data), 3)
    self.assert_bookmark_data_is_valid(self.other_bookmark_1, bookmarks_data[0])
    self.assert_bookmark_data_is_valid(self.bookmark_2, bookmarks_data[1])
    self.assert_bookmark_data_is_valid(self.bookmark_1, bookmarks_data[2])
    self.assert_bookmark_event_emitted(mock_tracker, event_name='edx.bookmark.listed', list_type='all_courses', bookmarks_count=3, page_size=10, page_number=1)
