'Add a facility'

def test_browser_add_facility(self, facility_name='My    Test    Facility'):

    self.admin_data = {'username': 'admin', 'password': 'admin'}
    self.create_admin(**self.admin_data)
    self.browser_login_admin(**self.admin_data)
    params = {'zone_id': None}
    add_facility_url = self.reverse('add_facility', kwargs=params)
    self.browse_to(add_facility_url)
    self.browser_activate_element(id='id_name')
    self.browser_send_keys(facility_name)
    self.browser.find_elements_by_class_name('submit')[0].click()
    self.wait_for_page_change(add_facility_url)
    self.browser_check_django_message(message_type='success', contains='has    been    successfully    saved!')
