コード例 #1
0
 def test_strip_email_group_translates_selection(self):
     file_name = path_for_tests("institution_cleaning.json")
     with open(file_name) as institutions_file:
         institutions = json.load(institutions_file)
     for institution in institutions:
         self.assertEqual(
             AllocationRequest.strip_email_sub_domains(
                 institution['original']), institution['processed'])
コード例 #2
0
 def test_strip_email_group_translates_selection(self):
     file_name = path_for_tests("institution_cleaning.json")
     with open(file_name) as institutions_file:
         institutions = json.load(institutions_file)
     for institution in institutions:
         self.assertEqual(AllocationRequest.strip_email_sub_domains(
             institution['original']),
             institution['processed'])
コード例 #3
0
 def test_strip_email_group_noprefix(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'uon.edu.au'),
         'uon.edu.au')
コード例 #4
0
 def test_strip_email_group_prefix_groupwise(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'groupwise.swin.edu.au'),
         'swin.edu.au')
コード例 #5
0
 def test_strip_email_group_prefix_ems(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'ems.rmit.edu.au'),
         'rmit.edu.au')
コード例 #6
0
 def test_strip_email_group_prefix_ems(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('ems.rmit.edu.au'),
         'rmit.edu.au')
コード例 #7
0
 def test_strip_email_group_prefix_student(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'student.murdoch.edu.au'),
         'murdoch.edu.au')
コード例 #8
0
 def test_strip_email_group_translates_domain_usydney(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'usyd.edu.au'),
         'sydney.edu.au')
コード例 #9
0
 def test_strip_email_group_translates_domain_myune(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('myune.edu.au'),
         'une.edu.au')
コード例 #10
0
 def test_strip_email_group_translates_domain_uwa(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('waimr.uwa.edu.au'),
         'uwa.edu.au')
コード例 #11
0
 def test_strip_email_group_translates_domain_usydney(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('usyd.edu.au'),
         'sydney.edu.au')
コード例 #12
0
 def test_strip_email_group_translates_domain_griffith(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('griffithuni.edu.au'),
         'griffith.edu.au')
コード例 #13
0
 def test_strip_email_group_noprefix(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('uon.edu.au'),
         'uon.edu.au')
コード例 #14
0
 def test_strip_email_group_prefix_groupwise(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('groupwise.swin.edu.au'),
         'swin.edu.au')
コード例 #15
0
 def test_strip_email_group_translates_domain_griffith(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'griffithuni.edu.au'),
         'griffith.edu.au')
コード例 #16
0
 def test_strip_email_group_prefix_unknown(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('unkown.murdoch.edu.au'),
         'unkown.murdoch.edu.au')
コード例 #17
0
 def test_strip_email_group_translates_domain_uwa(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'waimr.uwa.edu.au'),
         'uwa.edu.au')
コード例 #18
0
 def test_strip_email_group_prefix_student(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains(
             'student.murdoch.edu.au'), 'murdoch.edu.au')
コード例 #19
0
 def test_strip_email_group_translates_domain_myune(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'myune.edu.au'),
         'une.edu.au')
コード例 #20
0
 def test_strip_email_group_prefix_studentmail(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains(
             'studentmail.newcastle.edu.au'), 'newcastle.edu.au')
コード例 #21
0
 def test_strip_email_group_prefix_unknown(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'unkown.murdoch.edu.au'),
         'unkown.murdoch.edu.au')
コード例 #22
0
 def test_strip_email_group_prefix_my(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'my.jcu.edu.au'),
         'jcu.edu.au')
コード例 #23
0
 def test_strip_email_group_prefix_studentmail(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'studentmail.newcastle.edu.au'),
         'newcastle.edu.au')
コード例 #24
0
 def test_strip_email_group_prefix_my(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('my.jcu.edu.au'),
         'jcu.edu.au')