old_contents: from requests import session
  
  from tests.utils import (
      create_temp_csv,
      get_sms_via_api,
      get_email_message
  )
  
  from tests.pages import UploadCsvPage
  
  
  def test_send_notifications_from_csv(driver, base_url, profile, login_user):
  
      # go to upload csv for email notification page
      upload_csv_page = UploadCsvPage(driver)
      upload_csv_page.go_to_upload_csv_for_service_and_template(profile.service_id,
                                                                profile.email_template_id)
  
      # create csv file to use for email notification
      directory, filename = create_temp_csv(profile.email, 'email address')
  
      upload_csv_page.upload_csv(directory, filename)
  
      email_body = get_email_message(profile, profile.email_notification_label)
      assert "The quick brown fox jumped over the lazy dog" in email_body
  
      # go to upload csv for sms notification page
      upload_csv_page.go_to_upload_csv_for_service_and_template(profile.service_id,
                                                                profile.sms_template_id)
  
      # create csv file to use for sms notification
      directory, filename = create_temp_csv(profile.mobile, 'phone number')
      upload_csv_page.upload_csv(directory, filename)
  
      message = get_sms_via_api(profile.service_id, profile.sms_template_id, profile, profile.api_key)
  
      assert "The quick brown fox jumped over the lazy dog" in message
      upload_csv_page.sign_out()
  
new_contents: from tests.utils import (
      create_temp_csv,
      get_sms_via_api,
      get_email_message
  )
  
  from tests.pages import UploadCsvPage
  
  
  def test_send_notifications_from_csv(driver, base_url, profile, login_user):
  
      # go to upload csv for email notification page
      upload_csv_page = UploadCsvPage(driver)
      upload_csv_page.go_to_upload_csv_for_service_and_template(profile.service_id,
                                                                profile.email_template_id)
  
      # create csv file to use for email notification
      directory, filename = create_temp_csv(profile.email, 'email address')
  
      upload_csv_page.upload_csv(directory, filename)
  
      email_body = get_email_message(profile, profile.email_notification_label)
      assert "The quick brown fox jumped over the lazy dog" in email_body
  
      # go to upload csv for sms notification page
      upload_csv_page.go_to_upload_csv_for_service_and_template(profile.service_id,
                                                                profile.sms_template_id)
  
      # create csv file to use for sms notification
      directory, filename = create_temp_csv(profile.mobile, 'phone number')
      upload_csv_page.upload_csv(directory, filename)
  
      message = get_sms_via_api(profile.service_id, profile.sms_template_id, profile, profile.api_key)
  
      assert "The quick brown fox jumped over the lazy dog" in message
      upload_csv_page.sign_out()
  
subject: remove unused import