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

def test_get_set_methods_general(self):

    self.tribler_config.set_family_filter_enabled(False)
    self.assertEqual(self.tribler_config.get_family_filter_enabled(), False)
    self.tribler_config.set_state_dir(None)
    self.assertEqual(self.tribler_config.get_state_dir(), self.tribler_config.get_default_state_dir())
    self.tribler_config.set_state_dir('TEST')
    self.assertEqual(self.tribler_config.get_state_dir(), 'TEST')
    self.tribler_config.set_permid_keypair_filename(None)
    self.assertEqual(self.tribler_config.get_permid_keypair_filename(), os.path.join('TEST', 'ec.pem'))
    self.tribler_config.set_permid_keypair_filename('TEST')
    self.assertEqual(self.tribler_config.get_permid_keypair_filename(), 'TEST')
    self.tribler_config.set_trustchain_permid_keypair_filename(None)
    self.assertEqual(self.tribler_config.get_trustchain_permid_keypair_filename(), os.path.join('TEST', 'ec_multichain.pem'))
    self.tribler_config.set_trustchain_permid_keypair_filename('TEST')
    self.assertEqual(self.tribler_config.get_trustchain_permid_keypair_filename(), 'TEST')
    self.tribler_config.set_megacache_enabled(True)
    self.assertEqual(self.tribler_config.get_megacache_enabled(), True)
    self.tribler_config.set_video_analyser_path(True)
    self.assertEqual(self.tribler_config.get_video_analyser_path(), True)
