예제 #1
0
    def setUp(self):
        super(FancyPagesWebTest, self).setUp()
        MockTemplateMixin.setUp(self)
        self.user = None

        if self.is_staff:
            self.is_anonymous = False

        if self.is_staff or not self.is_anonymous:
            self.user = User.objects.create_user(username=self.username,
                                                 email=self.email,
                                                 password=self.password)
            self.user.is_staff = self.is_staff
            self.user.save()
예제 #2
0
    def setUp(self):
        super(FancyPagesWebTest, self).setUp()
        MockTemplateMixin.setUp(self)
        self.user = None

        if self.is_staff:
            self.is_anonymous = False

        if self.is_staff or not self.is_anonymous:
            self.user = User.objects.create_user(
                username=self.username, email=self.email,
                password=self.password)
            self.user.is_staff = self.is_staff
            self.user.save()
예제 #3
0
 def tearDown(self):
     super(FancyPagesTestCase, self).tearDown()
     MockTemplateMixin.tearDown(self)
예제 #4
0
 def setUp(self):
     super(FancyPagesTestCase, self).setUp()
     MockTemplateMixin.setUp(self)
예제 #5
0
 def tearDown(self):
     super(FancyPagesTestCase, self).tearDown()
     MockTemplateMixin.tearDown(self)
예제 #6
0
 def setUp(self):
     super(FancyPagesTestCase, self).setUp()
     MockTemplateMixin.setUp(self)