1- # Copyright The IETF Trust 2015-2019 , All Rights Reserved
1+ # Copyright The IETF Trust 2015-2020 , All Rights Reserved
22# -*- coding: utf-8 -*-
33
44
88from ietf .mailtrigger .models import MailTrigger
99from .utils import gather_address_lists
1010from ietf .utils .test_utils import TestCase
11- import six
1211
1312
1413class GatherAddressListsTests (TestCase ):
@@ -19,15 +18,15 @@ def setUp(self):
1918 def test_regular_trigger (self ):
2019 to , cc = gather_address_lists ('doc_pulled_from_rfc_queue' , doc = self .doc )
2120 # Despite its name, assertCountEqual also compares content, but does not care for ordering
22- six .assertCountEqual (self , to , ['iana@iana.org' , 'rfc-editor@rfc-editor.org' ])
23- six .assertCountEqual (self , cc , ['The IESG <iesg@ietf.org>' , self .author_address ,
21+ self .assertCountEqual (to , ['iana@iana.org' , 'rfc-editor@rfc-editor.org' ])
22+ self .assertCountEqual (cc , ['The IESG <iesg@ietf.org>' , self .author_address ,
2423 'mars-chairs@ietf.org' , 'iesg-secretary@ietf.org' ])
2524
2625 def test_skipped_recipient (self ):
2726 to , cc = gather_address_lists ('doc_pulled_from_rfc_queue' , doc = self .doc ,
2827 skipped_recipients = ['mars-chairs@ietf.org' , 'iana@iana.org' ])
29- six .assertCountEqual (self , to , ['rfc-editor@rfc-editor.org' ])
30- six .assertCountEqual (self , cc , ['The IESG <iesg@ietf.org>' , self .author_address ,
28+ self .assertCountEqual (to , ['rfc-editor@rfc-editor.org' ])
29+ self .assertCountEqual (cc , ['The IESG <iesg@ietf.org>' , self .author_address ,
3130 'iesg-secretary@ietf.org' ])
3231
3332 def test_trigger_does_not_exist (self ):
@@ -39,8 +38,8 @@ def test_create_if_not_exists(self):
3938 new_desc = 'Autocreated mailtrigger from doc_pulled_from_rfc_queue'
4039 to , cc = gather_address_lists (new_slug , doc = self .doc , desc_if_not_exists = new_desc ,
4140 create_from_slug_if_not_exists = 'doc_pulled_from_rfc_queue' )
42- six .assertCountEqual (self , to , ['iana@iana.org' , 'rfc-editor@rfc-editor.org' ])
43- six .assertCountEqual (self , cc , ['The IESG <iesg@ietf.org>' , self .author_address ,
41+ self .assertCountEqual (to , ['iana@iana.org' , 'rfc-editor@rfc-editor.org' ])
42+ self .assertCountEqual (cc , ['The IESG <iesg@ietf.org>' , self .author_address ,
4443 'mars-chairs@ietf.org' , 'iesg-secretary@ietf.org' ])
4544 new_trigger = MailTrigger .objects .get (slug = new_slug )
4645 self .assertEqual (new_trigger .desc , new_desc )
0 commit comments