'Test that delete bookmark returns 204 status code with success.'

def test_delete_bookmark_successfully(self):

    query_parameters = 'course_id={}'.format(urllib.quote(self.course_id))
    response = self.send_get(client=self.client, url=reverse('bookmarks'), query_parameters=query_parameters)
    bookmarks_data = response.data['results']
    self.assertEqual(len(bookmarks_data), 2)
    self.send_delete(client=self.client, url=reverse('bookmarks_detail', kwargs={'username': self.user.username, 'usage_id': unicode(self.sequential_1.location)}))
    response = self.send_get(client=self.client, url=reverse('bookmarks'), query_parameters=query_parameters)
    bookmarks_data = response.data['results']
    self.assertEqual(len(bookmarks_data), 1)
