test: Add test for RFC8713 section 4.15 disqualified roles
This commit is contained in:
parent
c2c02273c3
commit
658f7edeef
|
@ -2419,6 +2419,7 @@ class rfc8713EligibilityTests(TestCase):
|
||||||
self.eligible_people = list()
|
self.eligible_people = list()
|
||||||
self.ineligible_people = list()
|
self.ineligible_people = list()
|
||||||
|
|
||||||
|
# Section 4.14 qualification criteria
|
||||||
for combo_len in range(0,6):
|
for combo_len in range(0,6):
|
||||||
for combo in combinations(meetings,combo_len):
|
for combo in combinations(meetings,combo_len):
|
||||||
p = PersonFactory()
|
p = PersonFactory()
|
||||||
|
@ -2429,6 +2430,18 @@ class rfc8713EligibilityTests(TestCase):
|
||||||
else:
|
else:
|
||||||
self.eligible_people.append(p)
|
self.eligible_people.append(p)
|
||||||
|
|
||||||
|
# Section 4.15 disqualification criteria
|
||||||
|
def ineligible_person_with_role(**kwargs):
|
||||||
|
p = RoleFactory(**kwargs).person
|
||||||
|
for m in meetings:
|
||||||
|
MeetingRegistrationFactory(person=p, meeting=m, attended=True)
|
||||||
|
self.ineligible_people.append(p)
|
||||||
|
for group in ['isocbot', 'ietf-trust', 'llc-board', 'iab']:
|
||||||
|
for role in ['member', 'chair']:
|
||||||
|
ineligible_person_with_role(group__acronym=group, name_id=role)
|
||||||
|
ineligible_person_with_role(group__type_id='area', group__state_id='active',name_id='ad')
|
||||||
|
ineligible_person_with_role(group=self.nomcom.group, name_id='chair')
|
||||||
|
|
||||||
# No-one is eligible for the other_nomcom
|
# No-one is eligible for the other_nomcom
|
||||||
self.other_nomcom = NomComFactory(group__acronym='nomcom2018',first_call_for_volunteers=datetime.date(2018,5,1))
|
self.other_nomcom = NomComFactory(group__acronym='nomcom2018',first_call_for_volunteers=datetime.date(2018,5,1))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue