Ejemplo n.º 1
0
 def testGetLineDiffsDifferent(self):
     """test getLineDiffs() method with different value"""
     a = A()
     b = B()
     fd = TextDiff(a, b, "attribute")
     expected = [("replace", 0, 1, 0, 1)]
     self.assertEqual(fd.getLineDiffs(), expected)
Ejemplo n.º 2
0
 def testGetLineDiffsDifferent(self):
     """test getLineDiffs() method with different value"""
     a = A()
     b = B()
     fd = TextDiff(a, b, 'attribute')
     expected = [('replace', 0, 1, 0, 1)]
     self.assertEqual(fd.getLineDiffs(), expected)
Ejemplo n.º 3
0
 def testGetLineDiffsSame(self):
     """test getLineDiffs() method with same value"""
     a = A()
     fd = TextDiff(a, a, "attribute")
     expected = [("equal", 0, 1, 0, 1)]
     self.assertEqual(fd.getLineDiffs(), expected)
Ejemplo n.º 4
0
 def testGetLineDiffsSame(self):
     """test getLineDiffs() method with same value"""
     a = A()
     fd = TextDiff(a, a, 'attribute')
     expected = [('equal', 0, 1, 0, 1)]
     self.assertEqual(fd.getLineDiffs(), expected)