def test_user_creation_no_email(self):
        new_user = RegistrationProfile.objects.create_inactive_user(site=Site.objects.get_current(),
                                                                    send_email=False,
                                                                    **self.user_info)
        self.assertEqual(len(mail.outbox), 0)
Test override get_other_pks
dataset/ETHPy150Open codesters/codesters/registration/tests/models.py/RegistrationModelTests.test_user_creation_no_email--crossover with--dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/tests/test_viewsets.py/TestAlchemyViewSetUnit.test_get_other_pks