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
 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
Exemple #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"
Exemple #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]"
Exemple #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'
Exemple #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]'