Support non-JSON-able fact arguments in tests.
This simply uses a `repr` of the argument as they key - not ideal
but means we can support complex (list, dictionary) fact arguments.
@@ -104,6 +104,10 @@ class FakeFact(object):
if arg is None:
continue
+ # Support for non-JSON-able fact arguments
+ if isinstance(arg, list):
+ arg = repr(arg)
+
item = item[arg]
return item
