'Verifies that delete_bookmark raises error as expected.'

@patch('openedx.core.djangoapps.bookmarks.api.tracker.emit')
def test_delete_bookmark_raises_error(self, mock_tracker):

    with self.assertNumQueries(1):
        with self.assertRaises(ObjectDoesNotExist):
            api.delete_bookmark(user=self.other_user, usage_key=self.vertical_1.location)
    self.assert_no_events_were_emitted(mock_tracker)
