Remove default limit on diffs in cfgupgrade tests
authorHrvoje Ribicic <riba@google.com>
Fri, 6 Nov 2015 12:48:01 +0000 (12:48 +0000)
committerHrvoje Ribicic <riba@google.com>
Fri, 20 Nov 2015 10:14:26 +0000 (11:14 +0100)
These tests deal with large configuration files, and without the
changes present in this patch, instead of a pretty git-style diff of
two configurations, we get nothing.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>

test/py/cfgupgrade_unittest.py

index 3f58766..a6dec64 100755 (executable)
@@ -118,6 +118,10 @@ def _RunUpgrade(path, dry_run, no_verify, ignore_hostname=True,
 
 class TestCfgupgrade(unittest.TestCase):
   def setUp(self):
+    # Since we are comparing large dictionaries here, this is vital to getting
+    # useful feedback about differences in config content using assertEquals.
+    self.maxDiff = None
+
     self.tmpdir = tempfile.mkdtemp()
 
     self.config_path = utils.PathJoin(self.tmpdir, "config.data")