コード例 #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)