'When writing and reading a config the options should remain the same.'

def test_write_load(self):

    port = 4444
    self.tribler_config.set_anon_listen_port(port)
    self.tribler_config.write()
    path = os.path.join(self.tribler_config.get_state_dir(), FILENAME)
    read_config = TriblerConfig.load(path)
    read_config.validate()
    self.assertEqual(read_config.get_anon_listen_port(), port)
