bgp_multiview_topo1: Change from unified to context diff for better readability

This commit is contained in:
Martin Winter 2016-11-26 17:36:07 -08:00 committed by Donald Sharp
parent 2bdcdbd1b8
commit 3b6bac2adf

View File

@ -421,7 +421,9 @@ def test_bgp_routingTable():
actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)
# Generate Diff
diff = ''.join(difflib.unified_diff(actual, expected))
diff = ''.join(difflib.context_diff(actual, expected,
fromfile="actual BGP routing table",
tofile="expected BGP routing table"))
# Empty string if it matches, otherwise diff contains unified diff
if diff: