'If invalid data is supplied with the request, the view should return HTTP 406.'

def test_invalid_request_data(self):

    self.assertEqual(406, self.client.post(self.url, {}).status_code)
    self.assertEqual(406, self.client.post(self.url, {'not_course_id': ''}).status_code)
