コード例 #1
0
ファイル: test_utils.py プロジェクト: unthingable/contexture
def test_filter_dict_empty():
    filtered = utils.filter_dict_empty(dict(x=[]))
    eq_(filtered, {})
コード例 #2
0
ファイル: monitor.py プロジェクト: unthingable/contexture
 def post_process(obj):
     if args.trim:
         obj = remove_keys(obj, args.trim)
     if args.z:
         obj = filter_dict_empty(obj)
     return obj