@override_settings(REGISTRATION_OPEN=False)
    def test_registration_closed(self):
        resp = self.client.get(
            reverse('registration_register')
        )
        self.assertRedirects(resp, reverse('registration_disallowed'))

        resp = self.client.post(
            reverse('registration_register'),
            data=self.valid_data
        )
        self.assertRedirects(resp, reverse('registration_disallowed'))
``REGISTRATION_OPEN``, when ``False``, disallows registration.
dataset/ETHPy150Open ubernostrum/django-registration/registration/tests/base.py/WorkflowTestCase.test_registration_closed