tests/test-dicthelpers.py
changeset 18894 ed46c2b98b0d
parent 18820 a45e44d76c81
--- a/tests/test-dicthelpers.py	Tue Apr 09 09:40:40 2013 -0700
+++ b/tests/test-dicthelpers.py	Wed Apr 10 12:31:07 2013 -0700
@@ -49,5 +49,11 @@
                                              'c': ('baz', 456),
                                              'd': (456, 'quux')})
 
+        # check that we compare against default
+        self.assertEqual(diff(d1, d2, 'baz'), {'a': ('foo', 'foo2'),
+                                               'd': ('baz', 'quux')})
+        self.assertEqual(diff(d1, d2, 'quux'), {'a': ('foo', 'foo2'),
+                                                'c': ('baz', 'quux')})
+
 if __name__ == '__main__':
     silenttestrunner.main(__name__)