def test_disconnect(self):
    speedify.connect_closest()
    state = speedify.show_state()
    self.assertEqual(state, State.CONNECTED)
    speedify.disconnect()
    state = speedify.show_state()
    self.assertEqual(state, speedify.State.LOGGED_IN)
def test_disconnect(self):
    speedify.connect_closest()
    state = speedify.show_state()
    self.assertEqual(state, State.CONNECTED)
    speedify.disconnect()
    state = speedify.show_state()
    self.assertEqual(state, speedify.State.LOGGED_IN)