'Options passed in user config override system config.'

def test_simple_config_user_config_overrides_system_config(self):

    fake_read_system = (lambda : {'electrum_path': self.electrum_dir})
    fake_read_user = (lambda _: {'electrum_path': 'b'})
    read_user_dir = (lambda : self.user_dir)
    config = SimpleConfig(options={}, read_system_config_function=fake_read_system, read_user_config_function=fake_read_user, read_user_dir_function=read_user_dir)
    self.assertEqual('b', config.get('electrum_path'))
