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": {},
                             }
                         },
                     }
                 },
             }
         },
     )
Exemple #2
0
 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": {},
                                             }
                                         },
                                     }
                                 },
                             }
                         },
                     }
                 },
             }
         },
     )