def test_connect_country(self):
    serverinfo = speedify.connect_country('sg')
    state = speedify.show_state()
    self.assertEqual(state, State.CONNECTED)
    self.assertIn('tag', serverinfo)
    self.assertIn('country', serverinfo)
    self.assertEqual(serverinfo['country'], 'sg')
    new_serverinfo = speedify.show_currentserver()
    self.assertEqual(new_serverinfo['country'], 'sg')
def test_connect_country(self):
    serverinfo = speedify.connect_country('sg')
    state = speedify.show_state()
    self.assertEqual(state, State.CONNECTED)
    self.assertIn('tag', serverinfo)
    self.assertIn('country', serverinfo)
    self.assertEqual(serverinfo['country'], 'sg')
    new_serverinfo = speedify.show_currentserver()
    self.assertEqual(new_serverinfo['country'], 'sg')