Lines Matching defs:diff
28 diff = default_diff_function,
110 test.diff(actual, expected)
174 "diff" argument to TestCmd.TestCmd instantiation:
179 diff = TestCmd.diff_re)
181 test = TestCmd.TestCmd(diff = TestCmd.simple_diff)
183 The "diff" argument can also be used with standard difflib functions:
187 test = TestCmd.TestCmd(diff = difflib.context_diff)
189 test = TestCmd.TestCmd(diff = difflib.unified_diff)
468 (diff -c) and difflib.unified_diff (diff -u) but which prints
469 output like the simple, unadorned 'diff" command.
492 A simple "diff" of two sets of lines when the expected lines
499 diff = len(a) - len(b)
500 if diff < 0:
501 a = a + ['']*(-diff)
502 elif diff > 0:
503 b = b + ['']*diff
853 diff = None,
872 if diff is not None:
873 self.diff_function = diff
1030 def diff(self, a, b, name, *args, **kw):
1036 def diff(self, a, b, name, *args, **kw):