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

def test_get_set_methods_tunnel_community(self):

    self.tribler_config.set_tunnel_community_enabled(True)
    self.assertEqual(self.tribler_config.get_tunnel_community_enabled(), True)
    self.tribler_config.set_tunnel_community_socks5_listen_ports([(-1)])
    self.assertNotEqual(self.tribler_config.get_tunnel_community_socks5_listen_ports(), [(-1)])
    self.tribler_config.set_tunnel_community_socks5_listen_ports([5])
    self.assertEqual(self.tribler_config.get_tunnel_community_socks5_listen_ports(), [5])
    self.tribler_config.set_tunnel_community_exitnode_enabled(True)
    self.assertEqual(self.tribler_config.get_tunnel_community_exitnode_enabled(), True)
    self.tribler_config.set_default_number_hops(True)
    self.assertEqual(self.tribler_config.get_default_number_hops(), True)
    self.tribler_config.set_default_anonymity_enabled(True)
    self.assertEqual(self.tribler_config.get_default_anonymity_enabled(), True)
    self.tribler_config.set_default_safeseeding_enabled(True)
    self.assertEqual(self.tribler_config.get_default_safeseeding_enabled(), True)
    self.tribler_config.set_default_destination_dir(True)
    self.assertEqual(self.tribler_config.get_default_destination_dir(), True)
