def test_profile_creation(self):
        new_user = User.objects.create_user(**self.user_info)
        profile = RegistrationProfile.objects.create_profile(new_user)

        self.assertEqual(RegistrationProfile.objects.count(), 1)
        self.assertEqual(profile.user.id, new_user.id)
        self.failUnless(re.match('^[a-f0-9]{40}$', profile.activation_key))
        self.assertEqual(unicode(profile),
                         "Registration information for alice")
Create a domain alias from a CSV row
dataset/ETHPy150Open codesters/codesters/registration/tests/models.py/RegistrationModelTests.test_profile_creation--crossover with--dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/models/domain_alias.py/DomainAlias.from_csv