'Validates that enrollment changes are blocked if the user\'s profile is linked to an embargoed country.'

@override_settings(EDX_API_KEY=EnrollmentTestMixin.API_KEY)
@patch.dict(settings.FEATURES, {'EMBARGO': True})
def test_embargo_change_enrollment_restrict_user_profile(self):

    (__, restricted_country) = self._setup_embargo()
    self.user.profile.country = restricted_country.country
    self.user.profile.save()
    path = reverse('embargo:blocked_message', kwargs={'access_point': 'enrollment', 'message_key': 'default'})
    self.assert_access_denied(path)
