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)
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)
def testSameText(self): """Test text diff output with same value""" a = A() fd = TextDiff(a, a, "attribute") self.assertEqual(fd.ndiff(), " कामसूत्र")
def testSameText(self): """Test text diff output with same value""" a = A() fd = TextDiff(a, a, 'attribute') self.assertEqual(fd.ndiff(), ' कामसूत्र')