Esempio n. 1
0
 def test_dept_to_organisation(self):
     for source_agency in get_ons_producers():
         publisher = DrupalHelper.department_or_agency_to_organisation(
             source_agency)
         assert publisher, source_agency
         publisher = strip_organisation_id(publisher)
         assert '[some_number]' in publisher, publisher
Esempio n. 2
0
 def test_dept_to_organisation(self):
     for source_agency in get_ons_producers():
         publisher = DrupalHelper.department_or_agency_to_organisation(source_agency)
         assert publisher, source_agency
         publisher = strip_organisation_id(publisher)
         assert '[some_number]' in publisher, publisher
Esempio n. 3
0
 def test_dept_to_organisation_no_id(self):
     source_agency = "Ealing PCT"
     publisher = DrupalHelper.department_or_agency_to_organisation(source_agency, include_id=False)
     assert publisher == "Ealing PCT"
Esempio n. 4
0
 def test_dept_to_organisation(self):
     source_agency = "Ealing PCT"
     publisher = DrupalHelper.department_or_agency_to_organisation(source_agency)
     assert publisher == "Ealing PCT [2]"
Esempio n. 5
0
 def test_dept_to_organisation_no_id(self):
     source_agency = 'Ealing PCT'
     publisher = DrupalHelper.department_or_agency_to_organisation(
         source_agency, include_id=False)
     assert publisher == 'Ealing PCT'
Esempio n. 6
0
 def test_dept_to_organisation(self):
     source_agency = 'Ealing PCT'
     publisher = DrupalHelper.department_or_agency_to_organisation(
         source_agency)
     assert publisher == 'Ealing PCT [2]'