'Test case to check user creation is forbidden when ALLOW_PUBLIC_ACCOUNT_CREATION feature flag is turned off'

@patch('openedx.core.djangoapps.site_configuration.helpers.get_value', mock.Mock(return_value=False))
def test_create_account_not_allowed(self):

    response = self.client.get(self.url)
    self.assertEqual(response.status_code, 403)
