Example #1
0
 def testDiffText(self):
     """Test text diff output with different value"""
     a = A()
     b = B()
     expected = "- कामसूत्र%s+ 過労死" % linesep
     fd = TextDiff(a, b, "attribute")
     self.assertEqual(fd.ndiff(), expected)
Example #2
0
 def testDiffText(self):
     """Test text diff output with different value"""
     a = A()
     b = B()
     expected = "- कामसूत्र%s+ 過労死" % linesep
     fd = TextDiff(a, b, 'attribute')
     self.assertEqual(fd.ndiff(), expected)
Example #3
0
 def testSameText(self):
     """Test text diff output with same value"""
     a = A()
     fd = TextDiff(a, a, "attribute")
     self.assertEqual(fd.ndiff(), "  कामसूत्र")
Example #4
0
 def testSameText(self):
     """Test text diff output with same value"""
     a = A()
     fd = TextDiff(a, a, 'attribute')
     self.assertEqual(fd.ndiff(), '  कामसूत्र')