'Test that email address changes are rejected when ALLOW_EMAIL_ADDRESS_CHANGE is not set.'

@patch.dict(settings.FEATURES, dict(ALLOW_EMAIL_ADDRESS_CHANGE=False))
def test_email_changes_disabled(self):

    disabled_update = {'email': 'valid@example.com'}
    with self.assertRaises(AccountUpdateError) as context_manager:
        update_account_settings(self.user, disabled_update)
    self.assertIn('Email    address    changes    have    been    disabled', context_manager.exception.developer_message)
