'Check whether libtorrent get and set methods are working as expected.'

def test_get_set_methods_libtorrent(self):

    self.tribler_config.set_libtorrent_enabled(True)
    self.assertEqual(self.tribler_config.get_libtorrent_enabled(), True)
    self.tribler_config.set_libtorrent_utp(True)
    self.assertEqual(self.tribler_config.get_libtorrent_utp(), True)
    self.tribler_config.set_libtorrent_port(True)
    self.assertEqual(self.tribler_config.get_libtorrent_port(), True)
    self.tribler_config.set_libtorrent_port_runtime(True)
    self.assertEqual(self.tribler_config.get_libtorrent_port(), True)
    self.tribler_config.set_anon_listen_port(True)
    self.assertEqual(self.tribler_config.get_anon_listen_port(), True)
    self.tribler_config.set_libtorrent_proxy_settings(3, True, False)
    self.assertEqual(self.tribler_config.get_libtorrent_proxy_settings(), (3, True, False))
    self.tribler_config.set_anon_proxy_settings(0, None, None)
    self.assertEqual(self.tribler_config.get_anon_proxy_settings(), (0, (None, None), None))
    self.tribler_config.set_anon_proxy_settings(3, ('TEST', [5]), ('TUN', 'TPW'))
    self.assertEqual(self.tribler_config.get_anon_proxy_settings(), (3, ('TEST', [5]), ('TUN', 'TPW')))
    self.tribler_config.set_libtorrent_max_conn_download(True)
    self.assertEqual(self.tribler_config.get_libtorrent_max_conn_download(), True)
    self.tribler_config.set_libtorrent_max_upload_rate(True)
    self.assertEqual(self.tribler_config.get_libtorrent_max_upload_rate(), True)
    self.tribler_config.set_libtorrent_max_download_rate(True)
    self.assertEqual(self.tribler_config.get_libtorrent_max_download_rate(), True)
