def testDiffText(self): """Test text diff output with no diff""" a = A() b = B() expected = " 1\n 2\n 3\n+ 4" diff = ListDiff(a, b, 'attribute') self.assertEqual(diff.ndiff(), expected)
def testDiffText(self): """Test text diff output with no diff""" a = A() b = B() expected = " 1\n 2\n 3\n+ 4" diff = ListDiff(a, b, 'attribute') self.assertEqual(diff.ndiff(), expected)
def testDiffText(self): """Test text diff output with no diff""" a = A() b = B() expected = " 1%(linesep)s 2%(linesep)s 3%(linesep)s+ 4" % \ {'linesep': linesep} diff = ListDiff(a, b, 'attribute') self.assertEqual(diff.ndiff(), expected)
def testDiffText(self): """Test text diff output with no diff""" a = A() b = B() expected = ' 1%(linesep)s 2%(linesep)s 3%(linesep)s+ 4' % \ {'linesep': linesep} diff = ListDiff(a, b, 'attribute') self.assertEqual(diff.ndiff(), expected)
def testSameText(self): """Test text diff output with no diff""" a = A() diff = ListDiff(a, a, 'attribute') expected = " 1%(linesep)s 2%(linesep)s 3" % {'linesep': linesep} self.assertEqual(diff.ndiff(), expected)
def testSameText(self): """Test text diff output with no diff""" a = A() diff = ListDiff(a, a, 'attribute') expected = " 1\n 2\n 3" self.assertEqual(diff.ndiff(), expected)
def testSameText(self): """Test text diff output with no diff""" a = A() diff = ListDiff(a, a, 'attribute') expected = ' 1%(linesep)s 2%(linesep)s 3' % {'linesep': linesep} self.assertEqual(diff.ndiff(), expected)
def testSameText(self): """Test text diff output with no diff""" a = A() diff = ListDiff(a, a, 'attribute') expected = " 1\n 2\n 3" self.assertEqual(diff.ndiff(), expected)