casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes
testhelper.DictDiffer Class Reference

List of all members.

Public Member Functions

def __init__
def added
def removed
def changed
def unchanged

Public Attributes

 past_dict
 set_past
 intersect

Detailed Description

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.


Constructor & Destructor Documentation

def testhelper.DictDiffer.__init__ (   self,
  current_dict,
  past_dict 
)

Definition at line 180 of file testhelper.py.


Member Function Documentation

Definition at line 184 of file testhelper.py.

References testhelper.DictDiffer.intersect.


Member Data Documentation

Definition at line 182 of file testhelper.py.

Referenced by testhelper.DictDiffer.removed().


The documentation for this class was generated from the following file: