Пример #1
0
def standardize_organization_name_filter(name):
    return helpers.standardize_organization_name(name)
Пример #2
0
 def test_doesnt_bother_names_containing_string_pac(self):
     self.assertEqual('Pacific Trust', helpers.standardize_organization_name('PACIFIC TRUST'))
Пример #3
0
 def test_make_single_word_names_ending_in_pac_all_uppercase(self):
     self.assertEqual('ECEPAC', helpers.standardize_organization_name('ECEPAC'))
Пример #4
0
 def test_names_starting_with_PAC(self):
     self.assertEqual('PAC For Engineers', helpers.standardize_organization_name('PAC FOR ENGINEERS'))
     self.assertEqual('PAC 102', helpers.standardize_organization_name('PAC 102'))
Пример #5
0
 def test_capitalize_pac(self):
     self.assertEqual('Nancy Pelosi Leadership PAC', helpers.standardize_organization_name('NANCY PELOSI LEADERSHIP PAC'))