text: # test_gopro_ble.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
  # This copyright was auto-generated on Tue Sep  7 21:35:52 UTC 2021
  
  # pylint: disable=redefined-outer-name
  # pylint: disable=missing-return-doc
  
  """Unit testing of GoPro Wifi Client"""
  
  import pytest
  
  from open_gopro.wifi import WifiClient
  from open_gopro.exceptions import ConnectFailed
  
  
  def test_gopro_wifi_client_failed_to_connect(wifi_client: WifiClient):
      with pytest.raises(ConnectFailed):
          wifi_client.open("test_ssid", "invalid_password")
  
  
  def test_gopro_wifi_client_open(wifi_client: WifiClient):
      wifi_client.open("test_ssid", "password")
      assert wifi_client.ssid == "test_ssid"
      assert wifi_client.password == "password"
  
  
  def test_gopro_wifi_client_is_connected(wifi_client: WifiClient):
      assert wifi_client.is_connected
  
  
  def test_gopro_wifi_client_close(wifi_client: WifiClient):
      wifi_client.close()
      assert wifi_client.ssid == "test_ssid"
      assert wifi_client.password == "password"
  