def test_connect(self):
    serverinfo = speedify.connect_closest()
    state = speedify.show_state()
    self.assertEqual(state, State.CONNECTED)
    self.assertIn('tag', serverinfo)
    self.assertIn('country', serverinfo)
def test_connect(self):
    serverinfo = speedify.connect_closest()
    state = speedify.show_state()
    self.assertEqual(state, State.CONNECTED)
    self.assertIn('tag', serverinfo)
    self.assertIn('country', serverinfo)