def test_serverlist(self):
    server_list = speedify.show_servers()
    self.assertIn('public', server_list)
    public_list = server_list['public']
    server_info = public_list[0]
    self.assertIn('tag', server_info)
    self.assertIn('country', server_info)
    self.assertIn('city', server_info)
    self.assertIn('num', server_info)
    self.assertFalse(server_info['isPrivate'])
    connectstring = server_info['tag']
    new_server = speedify.connect(connectstring)
    self.assertEqual(new_server['tag'], connectstring)
    self.assertEqual(server_info['country'], new_server['country'])
    self.assertEqual(server_info['city'], new_server['city'])
    self.assertEqual(server_info['num'], new_server['num'])
def test_serverlist(self):
    server_list = speedify.show_servers()
    self.assertIn('public', server_list)
    public_list = server_list['public']
    server_info = public_list[0]
    self.assertIn('tag', server_info)
    self.assertIn('country', server_info)
    self.assertIn('city', server_info)
    self.assertIn('num', server_info)
    self.assertFalse(server_info['isPrivate'])
    connectstring = server_info['tag']
    new_server = speedify.connect(connectstring)
    self.assertEqual(new_server['tag'], connectstring)
    self.assertEqual(server_info['country'], new_server['country'])
    self.assertEqual(server_info['city'], new_server['city'])
    self.assertEqual(server_info['num'], new_server['num'])