def diffdict(dicta, dictb, indentlevel):
    retstr = ''
    for keya in dicta.keys():
        if not keya in dictb:
            brackets = charfortype(dicta[keya])
            if type(dicta[keya]) is str or type(dicta[keya]) is unicode:
                retstr += added("{4}\"{0}\": {2}{1}{3},".format(keya, printsomething(dicta[keya], 'added', indentlevel+1), brackets[0], brackets[1], i(indentlevel)))
            if type(dicta[keya]) is list or type(dicta[keya]) is dict:
                retstr += added("{4}\"{0}\": {2}<br/>\n{1}{4}{3},".format(keya, printsomething(dicta[keya], 'added', indentlevel+1), brackets[0], brackets[1], i(indentlevel)))
        else:
            if not type(dicta[keya]) is type(dictb[keya]):
                brackets = charfortype(dictb[keya])
                retstr += deleted("{4}\"{0}\": {2}{1}{3},".format(keya, dictb[keya], brackets[0], brackets[1], i(indentlevel)))
                brackets = charfortype(dicta[keya])
                retstr += added("{4}\"{0}\": {2}{1}{3},".format(keya, dicta[keya], brackets[0], brackets[1], i(indentlevel)))
            else:
                retstr += process_sub_dict(keya, dicta[keya], dictb[keya], indentlevel)
    for keyb in dictb.keys():
        if not keyb in dicta:
            brackets = charfortype(dictb[keyb])
            if type(dictb[keyb]) is str or type(dictb[keyb]) is unicode:
                retstr += deleted("{4}\"{0}\": {2}{1}{3},".format(keyb, printsomething(dictb[keyb], 'deleted', indentlevel+1), brackets[0], brackets[1], i(indentlevel)))
            if type(dictb[keyb]) is list or type(dictb[keyb]) is dict:
                retstr += deleted("{4}\"{0}\": {2}<br/>\n{1}{4}{3},".format(keyb, printsomething(dictb[keyb], 'deleted', indentlevel+1), brackets[0], brackets[1], i(indentlevel)))
    return remove_last_comma(retstr)
Ensures the generic view returned the page and contains a form.
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/common/PolicyDiff.py/diffdict--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/views/tests/generic/create_update.py/CreateObjectTest.test_create_article_display_page