Exemplo n.º 1
0
 def setUp(self):
     self.user = create_test_user()
     self.user2 = create_test_user()
     self.group = create_test_group(user=self.user)
     self.group.subscriptions.append(self.user2)
     self.post = create_test_post(user=self.user, group=self.group)
     self.post3 = create_test_post(user=self.user, group=self.group)
     self.hot = create_test_hot(user=self.user2, post=self.post)
     self.group2 = create_test_group(user=self.user)
     self.post4 = create_test_post(user=self.user, group=self.group2)
     self.post2 = create_test_post(user=self.user, group=self.group2)
     self.args['token'] = self.user2.user_token.token
     self.args['page'] = 1
     self.args['limit'] = 100000
Exemplo n.º 2
0
 def setUp(self):
     self.user = create_test_user()
     self.group = create_test_group(user=self.user)
     self.post = create_test_post(group=self.group, user=self.user)
     self.hot = create_test_hot(post=self.post,user=self.user)