'Setting and getting of libtorrent proxy settings.'

def test_libtorrent_proxy_settings(self):

    (proxy_type, server, auth) = (3, ('33.33.33.33', 22), 1)
    self.tribler_config.set_libtorrent_proxy_settings(proxy_type, server, auth)
    self.assertEqual(self.tribler_config.get_libtorrent_proxy_settings()[0], proxy_type)
    self.assertEqual(self.tribler_config.get_libtorrent_proxy_settings()[1], server)
    self.assertEqual(self.tribler_config.get_libtorrent_proxy_settings()[2], auth)
    proxy_type = 1
    self.tribler_config.set_libtorrent_proxy_settings(proxy_type, server, auth)
    self.assertEqual(self.tribler_config.get_libtorrent_proxy_settings()[0], proxy_type)
    self.assertEqual(self.tribler_config.get_libtorrent_proxy_settings()[1], server)
    self.assertIsNone(self.tribler_config.get_libtorrent_proxy_settings()[2])
