def test_args(self): self.assertDictEqual( MemoryRedundancyChecker.args({}), { "rchecker": { "plugin": None, "config": { "memory": { "plugin": None, "config": { "kvstore": { "plugin": Arg( type=load_kvstore_with_args, help="Key value store to use", default=MemoryKeyValueStore(), ), "config": {}, } }, } }, } }, )
def test_args(self): self.assertEqual( MemoryRedundancyChecker.args({}), { "rchecker": { "arg": None, "config": { "memory": { "arg": None, "config": { "kvstore": { "arg": Arg( type=BaseKeyValueStore.load, default=MemoryKeyValueStore, ), "config": { "withargs": { "arg": None, "config": { "filename": { "arg": Arg(type=str), "config": {}, } }, } }, } }, } }, } }, )