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