Exemplo n.º 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'])
Exemplo n.º 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'])
Exemplo n.º 3
0
 def test_strip_email_group_noprefix(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'uon.edu.au'),
         'uon.edu.au')
Exemplo n.º 4
0
 def test_strip_email_group_prefix_groupwise(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'groupwise.swin.edu.au'),
         'swin.edu.au')
Exemplo n.º 5
0
 def test_strip_email_group_prefix_ems(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'ems.rmit.edu.au'),
         'rmit.edu.au')
Exemplo n.º 6
0
 def test_strip_email_group_prefix_ems(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('ems.rmit.edu.au'),
         'rmit.edu.au')
Exemplo n.º 7
0
 def test_strip_email_group_prefix_student(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'student.murdoch.edu.au'),
         'murdoch.edu.au')
Exemplo n.º 8
0
 def test_strip_email_group_translates_domain_usydney(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'usyd.edu.au'),
         'sydney.edu.au')
Exemplo n.º 9
0
 def test_strip_email_group_translates_domain_myune(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('myune.edu.au'),
         'une.edu.au')
Exemplo n.º 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')
Exemplo n.º 11
0
 def test_strip_email_group_translates_domain_usydney(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('usyd.edu.au'),
         'sydney.edu.au')
Exemplo n.º 12
0
 def test_strip_email_group_translates_domain_griffith(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('griffithuni.edu.au'),
         'griffith.edu.au')
Exemplo n.º 13
0
 def test_strip_email_group_noprefix(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('uon.edu.au'),
         'uon.edu.au')
Exemplo n.º 14
0
 def test_strip_email_group_prefix_groupwise(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('groupwise.swin.edu.au'),
         'swin.edu.au')
Exemplo n.º 15
0
 def test_strip_email_group_translates_domain_griffith(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'griffithuni.edu.au'),
         'griffith.edu.au')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 18
0
 def test_strip_email_group_prefix_student(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains(
             'student.murdoch.edu.au'), 'murdoch.edu.au')
Exemplo n.º 19
0
 def test_strip_email_group_translates_domain_myune(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'myune.edu.au'),
         'une.edu.au')
Exemplo n.º 20
0
 def test_strip_email_group_prefix_studentmail(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains(
             'studentmail.newcastle.edu.au'), 'newcastle.edu.au')
Exemplo n.º 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')
Exemplo n.º 22
0
 def test_strip_email_group_prefix_my(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'my.jcu.edu.au'),
         'jcu.edu.au')
Exemplo n.º 23
0
 def test_strip_email_group_prefix_studentmail(self):
     self.assertEqual(AllocationRequest.strip_email_sub_domains(
         'studentmail.newcastle.edu.au'),
         'newcastle.edu.au')
Exemplo n.º 24
0
 def test_strip_email_group_prefix_my(self):
     self.assertEqual(
         AllocationRequest.strip_email_sub_domains('my.jcu.edu.au'),
         'jcu.edu.au')