Esempio n. 1
0
 def setUp(self):
     super(AddRemoveLeaderTests, self).setUp()
     self.user = user(save=True)
     add_permission(self.user, GroupProfile, 'change_groupprofile')
     self.leader = user(save=True)
     self.group_profile = group_profile(group=group(save=True), save=True)
     self.client.login(username=self.user.username, password='******')
Esempio n. 2
0
 def setUp(self):
     super(AddRemoveMemberTests, self).setUp()
     self.user = user(save=True)
     self.member = user(save=True)
     add_permission(self.user, GroupProfile, "change_groupprofile")
     self.group_profile = group_profile(group=group(save=True), save=True)
     self.client.login(username=self.user.username, password="******")
Esempio n. 3
0
 def setUp(self):
     super(EditGroupProfileTests, self).setUp()
     self.user = user(save=True)
     self.group_profile = group_profile(group=group(save=True), save=True)
     self.client.login(username=self.user.username, password='******')