'If electrum is started with the "portable" flag, system
configuration is completely ignored.'

def test_simple_config_system_config_ignored_if_portable(self):

    fake_read_system = (lambda : {'some_key': 'some_value'})
    fake_read_user = (lambda _: {})
    read_user_dir = (lambda : self.user_dir)
    config = SimpleConfig(options={'portable': True}, read_system_config_function=fake_read_system, read_user_config_function=fake_read_user, read_user_dir_function=read_user_dir)
    self.assertEqual(config.get('some_key'), None)
