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'])
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'])
def test_strip_email_group_noprefix(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'uon.edu.au'), 'uon.edu.au')
def test_strip_email_group_prefix_groupwise(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'groupwise.swin.edu.au'), 'swin.edu.au')
def test_strip_email_group_prefix_ems(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'ems.rmit.edu.au'), 'rmit.edu.au')
def test_strip_email_group_prefix_ems(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('ems.rmit.edu.au'), 'rmit.edu.au')
def test_strip_email_group_prefix_student(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'student.murdoch.edu.au'), 'murdoch.edu.au')
def test_strip_email_group_translates_domain_usydney(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'usyd.edu.au'), 'sydney.edu.au')
def test_strip_email_group_translates_domain_myune(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('myune.edu.au'), 'une.edu.au')
def test_strip_email_group_translates_domain_uwa(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('waimr.uwa.edu.au'), 'uwa.edu.au')
def test_strip_email_group_translates_domain_usydney(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('usyd.edu.au'), 'sydney.edu.au')
def test_strip_email_group_translates_domain_griffith(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('griffithuni.edu.au'), 'griffith.edu.au')
def test_strip_email_group_noprefix(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('uon.edu.au'), 'uon.edu.au')
def test_strip_email_group_prefix_groupwise(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('groupwise.swin.edu.au'), 'swin.edu.au')
def test_strip_email_group_translates_domain_griffith(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'griffithuni.edu.au'), 'griffith.edu.au')
def test_strip_email_group_prefix_unknown(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('unkown.murdoch.edu.au'), 'unkown.murdoch.edu.au')
def test_strip_email_group_translates_domain_uwa(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'waimr.uwa.edu.au'), 'uwa.edu.au')
def test_strip_email_group_prefix_student(self): self.assertEqual( AllocationRequest.strip_email_sub_domains( 'student.murdoch.edu.au'), 'murdoch.edu.au')
def test_strip_email_group_translates_domain_myune(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'myune.edu.au'), 'une.edu.au')
def test_strip_email_group_prefix_studentmail(self): self.assertEqual( AllocationRequest.strip_email_sub_domains( 'studentmail.newcastle.edu.au'), 'newcastle.edu.au')
def test_strip_email_group_prefix_unknown(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'unkown.murdoch.edu.au'), 'unkown.murdoch.edu.au')
def test_strip_email_group_prefix_my(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'my.jcu.edu.au'), 'jcu.edu.au')
def test_strip_email_group_prefix_studentmail(self): self.assertEqual(AllocationRequest.strip_email_sub_domains( 'studentmail.newcastle.edu.au'), 'newcastle.edu.au')
def test_strip_email_group_prefix_my(self): self.assertEqual( AllocationRequest.strip_email_sub_domains('my.jcu.edu.au'), 'jcu.edu.au')