Commits

Dhananjay Nene committed 34f4fb7 Draft

Now runs the tests unit.py and hamcrest_integration.py successfully under python3

Comments (0)

Files changed (1)

pyDoubles/matchers.py

     matcher_name = "Object with certain value in the field"    
 
     def __init__(self, field_dict):
-        if not hasattr(field_dict, "iteritems"):
+        if not hasattr(field_dict, "items"):
             raise WrongApiUsage("This matcher requires a dictionary: {'name': value} ")
         self.defined_arg = field_dict