def test_privacy(self):
    speedify.crashreports(False)
    privacy_settings = speedify.show_privacy()
    self.assertFalse(privacy_settings['crashReports'])
    speedify.crashreports(True)
    privacy_settings = speedify.show_privacy()
    self.assertTrue(privacy_settings['crashReports'])
    if (os.name == 'nt'):
        speedify.killswitch(True)
        privacy_settings = speedify.show_privacy()
        self.assertTrue(privacy_settings['killswitch'])
        speedify.killswitch(False)
        privacy_settings = speedify.show_privacy()
        self.assertFalse(privacy_settings['killswitch'])
    else:
        with self.assertRaises(SpeedifyError):
            logging.disable(logging.ERROR)
            speedify.killswitch(True)
            logging.disable(logging.NOTSET)
def test_privacy(self):
    speedify.crashreports(False)
    privacy_settings = speedify.show_privacy()
    self.assertFalse(privacy_settings['crashReports'])
    speedify.crashreports(True)
    privacy_settings = speedify.show_privacy()
    self.assertTrue(privacy_settings['crashReports'])
    if (os.name == 'nt'):
        speedify.killswitch(True)
        privacy_settings = speedify.show_privacy()
        self.assertTrue(privacy_settings['killswitch'])
        speedify.killswitch(False)
        privacy_settings = speedify.show_privacy()
        self.assertFalse(privacy_settings['killswitch'])
    else:
        with self.assertRaises(SpeedifyError):
            logging.disable(logging.ERROR)
            speedify.killswitch(True)
            logging.disable(logging.NOTSET)