Public Member Functions | |
def | __init__ |
def | added |
def | removed |
def | changed |
def | unchanged |
Public Attributes | |
past_dict | |
set_past | |
intersect |
Calculate the difference between two dictionaries as: (1) items added (2) items removed (3) keys same in both but changed values (4) keys same in both and unchanged values Example: mydiff = DictDiffer(dict1, dict2) mydiff.changed() # to show what has changed
Definition at line 169 of file testhelper.py.
def testhelper.DictDiffer.__init__ | ( | self, | |
current_dict, | |||
past_dict | |||
) |
Definition at line 180 of file testhelper.py.
def testhelper.DictDiffer.added | ( | self | ) |
Definition at line 184 of file testhelper.py.
References testhelper.DictDiffer.intersect.
def testhelper.DictDiffer.changed | ( | self | ) |
Definition at line 188 of file testhelper.py.
References testhelper.DictDiffer.intersect, and testhelper.DictDiffer.past_dict.
def testhelper.DictDiffer.removed | ( | self | ) |
Definition at line 186 of file testhelper.py.
References testhelper.DictDiffer.intersect, and testhelper.DictDiffer.set_past.
def testhelper.DictDiffer.unchanged | ( | self | ) |
Definition at line 190 of file testhelper.py.
References testhelper.DictDiffer.intersect, and testhelper.DictDiffer.past_dict.
Definition at line 183 of file testhelper.py.
Referenced by testhelper.DictDiffer.added(), testhelper.DictDiffer.changed(), testhelper.DictDiffer.removed(), and testhelper.DictDiffer.unchanged().
Definition at line 181 of file testhelper.py.
Referenced by testhelper.DictDiffer.changed(), and testhelper.DictDiffer.unchanged().
Definition at line 182 of file testhelper.py.
Referenced by testhelper.DictDiffer.removed().