def setUp(self):
        self.backend = DefaultRegistrationBackend()
        self.mock_request = mock_request()
        self.admin = User.objects.create_superuser(
                username='******', email='*****@*****.**',
                password='******')

        self.client.login(username='******', password='******')
        self.admin_url = reverse('admin:index')
示例#2
0
    def setUp(self):
        self.backend = DefaultRegistrationBackend()
        self.mock_request = mock_request()
        self.admin = User.objects.create_superuser(username='******',
                                                   email='*****@*****.**',
                                                   password='******')

        self.client.login(username='******', password='******')
        self.admin_url = reverse('admin:index')
示例#3
0
 def setUp(self):
     self.backend = DefaultRegistrationBackend()
     self.mock_request = mock_request()
 def setUp(self):
     self.backend = DefaultRegistrationBackend()
     self.mock_request = mock_request()