rename userN -> cbds_userN in check_olddata
This commit is contained in:
parent
cf2a3f64d5
commit
5794f0945f
1 changed files with 3 additions and 3 deletions
|
@ -32,21 +32,21 @@ class Command(BaseCommand):
|
|||
self.stdout.write("* Utilisateurs... ", ending='')
|
||||
|
||||
self.u1 = User.objects.get(username='cbds_user1')
|
||||
assert self.u1.profile.login_clipper == 'user1'
|
||||
assert self.u1.profile.login_clipper == 'cbds_user1'
|
||||
assert self.g_staff in self.u1.groups.all()
|
||||
assert self.g_members in self.u1.groups.all()
|
||||
assert self.u1.has_perm('cof.buro')
|
||||
assert self.u1.has_perm('cof.member')
|
||||
|
||||
self.u2 = User.objects.get(username='cbds_user2')
|
||||
assert self.u2.profile.login_clipper == 'user2'
|
||||
assert self.u2.profile.login_clipper == 'cbds_user2'
|
||||
assert self.g_staff not in self.u2.groups.all()
|
||||
assert self.g_members in self.u2.groups.all()
|
||||
assert not self.u2.has_perm('cof.buro')
|
||||
assert self.u2.has_perm('cof.member')
|
||||
|
||||
self.u3 = User.objects.get(username='cbds_user3')
|
||||
assert self.u3.profile.login_clipper == 'user3'
|
||||
assert self.u3.profile.login_clipper == 'cbds_user3'
|
||||
assert self.g_staff not in self.u3.groups.all()
|
||||
assert self.g_members not in self.u3.groups.all()
|
||||
assert not self.u3.has_perm('cof.buro')
|
||||
|
|
Loading…
Reference in a new issue