# Path: django_make_app/utils.py
# def is_callable(obj):
#     return hasattr(obj, '__call__')


from unittest import TestCase
from django_make_app.utils import is_callable
# -*- encoding: utf-8 -*-
# ! python2

from __future__ import (absolute_import, division, print_function, unicode_literals)




def dummy_callable():
    for _ in range(2):
        yield {
            "name": "X",
            "nodes": []
        }


def unpack_callables_in_dict(item):
    nodes = []

    for node in item.get("nodes", []):

# Path: django_make_app/utils.py
# def is_callable(obj):
#     return hasattr(obj, '__call__')


# Path: tests/test_dict_recursive_unpack.py
from unittest import TestCase
from django_make_app.utils import is_callable

# -*- encoding: utf-8 -*-
# ! python2

from __future__ import (absolute_import, division, print_function, unicode_literals)




def dummy_callable():
    for _ in range(2):
        yield {
            "name": "X",
            "nodes": []
        }


def unpack_callables_in_dict(item):
    nodes = []

    for node in item.get("nodes", []):

        if is_callable(node):