示例#1
0
 def setUp(self):
     UserModel = get_user_model()
     UserModel.objects.create_user(
         username='******',
         email='*****@*****.**',
         password='******'
     )
     self.backend = EmailBackend()
示例#2
0
 def setUp(self):
     UserModel = get_user_model()
     UserModel.objects.create_user(username='******',
                                   email='*****@*****.**',
                                   password='******')
     UserModel.objects.create_user(username='******',
                                   email='*****@*****.**',
                                   password='******')
     self.backend = EmailBackend()