'Test that posting a bookmark for a block with invalid usage id returns a 400.
Scenarios:
1) Invalid usage id.
2) Without usage id.
3) With empty request.data'

def test_post_bookmark_with_invalid_data(self):

    response = self.send_post(client=self.client, url=reverse('bookmarks'), data={'usage_id': 'invalid'}, expected_status=400)
    self.assertEqual(response.data['user_message'], u'An    error    has    occurred.    Please    try    again.')
    response = self.send_post(client=self.client, url=reverse('bookmarks'), data={'course_id': 'invalid'}, expected_status=400)
    self.assertEqual(response.data['user_message'], u'An    error    has    occurred.    Please    try    again.')
    self.assertEqual(response.data['developer_message'], u'Parameter    usage_id    not    provided.')
    with self.assertNumQueries(8):
        response = self.send_post(client=self.client, url=reverse('bookmarks'), data={}, expected_status=400)
    self.assertEqual(response.data['user_message'], u'An    error    has    occurred.    Please    try    again.')
    self.assertEqual(response.data['developer_message'], u'No    data    provided.')
