Example #1
0
    def setUp(self):
        helper.create_category("C1")
        helper.create_board("B1", "C1")
        helper.create_thread("T1", "B1", "C1")

        u_helper.create_normal_user("U1")
        u_helper.create_normal_user("U2")
        u_helper.create_normal_user("U3", helper.get_board_by_name("B1"))
        u_helper.create_super_user("U4")

        helper.create_post("P1", "U1", "T1", "B1", "C1")
Example #2
0
    def setUp(self):
        helper.create_category("C1")
        helper.create_board("B1", "C1")
        helper.create_thread("T1", "B1", "C1")

        t = helper.get_thread_by_title("T1")
        t.lock_thread()
        t.save()

        u_helper.create_normal_user("U1")  # Owner of the post
        u_helper.create_normal_user("U2")  # Normal user
        u_helper.create_normal_user("U3", helper.get_board_by_name("B1"))
        u_helper.create_super_user("U4")

        helper.create_post("P1", "U1", "T1", "B1", "C1")
Example #3
0
 def setUp(self):
     self.u1 = u_helper.create_normal_user('U1')
     self.s1 = u_helper.create_super_user('S1')
     self.g1 = u_helper.create_group('G1')
     self.c1 = helper.create_category('C1')
     self.b1 = helper.create_board('B1', 'C1')
     self.b2 = helper.create_board('B2', 'C1')
Example #4
0
    def setUp(self):
        self.c1 = helper.create_category('C1')
        self.b1 = helper.create_board('B1', 'C1')
        self.t1 = helper.create_thread('T1', 'B1', 'C1')

        self.u1 = u_helper.create_normal_user('U1')
        self.u2 = u_helper.create_normal_user('U2')
        self.u3 = u_helper.create_normal_user('U3', self.b1)
        self.s1 = u_helper.create_super_user('U4')

        self.p1 = helper.create_post('P1', 'U1', 'T1', 'B1', 'C1')