'The view should return HTTP 403 status if the course is embargoed.'

@mock.patch.dict(settings.FEATURES, {'EMBARGO': True})
def test_embargo_restriction(self):

    with restrict_course(self.course.id) as redirect_url:
        response = self._post_to_view()
        self.assertEqual(403, response.status_code)
        body = json.loads(response.content)
        self.assertEqual(get_absolute_url(redirect_url), body['user_message_url'])
