

def test_user_creation_no_email(self):
    '\n        Passing ``send_email=False`` when creating a new user will not\n        send an activation email.\n        \n        '
    new_user = RegistrationProfile.objects.create_inactive_user(site=Site.objects.get_current(), send_email=False, **self.user_info)
    new_user.assertEqual(len(mail.outbox), 0)

dataset/ETHPy150Open codesters/codesters/registration/tests/models.py RegistrationModelTests.test_user_creation_no_email/VarMisuse@40/97 `self`->`new_user`