'If no system-wide configuration and no command-line options are
specified, the user configuration is used instead.'

def test_simple_config_user_config_is_used_if_others_arent_specified(self):

    fake_read_system = (lambda : {})
    fake_read_user = (lambda _: {'electrum_path': self.electrum_dir})
    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(self.options.get('electrum_path'), config.get('electrum_path'))
