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')
Exemplo n.º 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')
Exemplo n.º 3
0
 def setUp(self):
     self.backend = DefaultRegistrationBackend()
     self.mock_request = mock_request()
 def setUp(self):
     self.backend = DefaultRegistrationBackend()
     self.mock_request = mock_request()