def sort_nested_dict(value):
    result = OrderedDict()

    for key, value in sorted(value.items(), key=sort_key_by_numeric_other):
        if isinstance(value, (dict, OrderedDict)):
            result[key] = sort_nested_dict(value)
        else:
            result[key] = value

    return result
Assert than an API method was just called.
dataset/ETHPy150Open apache/libcloud/contrib/scrape-ec2-prices.py/sort_nested_dict--crossover with--dataset/ETHPy150Open openstack/python-rackclient/rackclient/openstack/common/apiclient/fake_client.py/FakeHTTPClient.assert_called