Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 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)