Exemple #1
0
def test_filter_dict_empty():
    filtered = utils.filter_dict_empty(dict(x=[]))
    eq_(filtered, {})
Exemple #2
0
 def post_process(obj):
     if args.trim:
         obj = remove_keys(obj, args.trim)
     if args.z:
         obj = filter_dict_empty(obj)
     return obj