'Overriden Registration view does not send an activation email if the
associated class variable is set to ``False``'

def test_registration_no_email(self):

    class RegistrationNoEmailView(self.registration_view, ):
        SEND_ACTIVATION_EMAIL = False
    request_factory = RequestFactory()
    view = RegistrationNoEmailView.as_view()
    view(request_factory.post('/', data={'username': 'bob', 'email': 'bob@example.com', 'password1': 'secret', 'password2': 'secret'}))
    UserModel().objects.get(username='bob')
    self.assertEqual(self.registration_profile.objects.count(), 1)
    self.assertEqual(len(mail.outbox), 0)
