def main(status, on):
    """wifi_hotspot_autoconnect helps enable/disable hotspot
    autoconnect feature """
    if status:
        click.echo("Hotspot Auto connection status is  " +
                   str(wrapper.status_hotspot_autoconnect()))
    elif on is not None:
        wrapper.set_autoconnect(on)
        click.echo("Hotspot Auto connection status is set to " +
                   str(wrapper.status_hotspot_autoconnect()))

    if len(sys.argv) is 1:
        print("No configuration detected. Please use --help for instructions")
def main(status, on):
    """wifi_hotspot_autoconnect helps enable/disable hotspot
    autoconnect feature """
    if status:
        click.echo("Hotspot Auto connection status is: " +
                   str(wrapper.status_hotspot_autoconnect()))
    elif on != None:
        wrapper.set_autoconnect(on)
    else:
        print("No configuration detected. Please use --help for instructions")
 def test_hotspot_autoconnect_value(self):
     self.assertIn(wifi.status_hotspot_autoconnect(), {True, False})
 def test_hotspot_set_autoconnect_false(self):
     wifi.set_autoconnect(False)
     self.assertFalse(wifi.status_hotspot_autoconnect())
 def test_hotspot_set_autoconnect_true(self):
     wifi.set_autoconnect(True)
     self.assertTrue(wifi.status_hotspot_autoconnect())