Exemplo n.º 1
0
 def testSameText(self):
     """Test text diff output with same value"""
     a = A()
     fd = FieldDiff(a, a, 'attribute')
     self.assertEqual(fd.ndiff(), '  value')
     uu = U()
     fd = FieldDiff(uu, uu, 'attribute')
     self.assertEqual(fd.ndiff(), u'  \xfcnicode value')
Exemplo n.º 2
0
 def testSameText(self):
     """Test text diff output with same value"""
     a = A()
     fd = FieldDiff(a, a, 'attribute')
     self.assertEqual(fd.ndiff(), '  value')
     uu = U()
     fd = FieldDiff(uu, uu, 'attribute')
     self.assertEqual(fd.ndiff(), u'  \xfcnicode value')
Exemplo n.º 3
0
 def testDiffText(self):
     """Test text diff output with different value"""
     a = A()
     b = B()
     uu = U()
     expected = '- value%s+ different value' % linesep
     fd = FieldDiff(a, b, 'attribute')
     self.assertEqual(fd.ndiff(), expected)
     expected = u"- value%s+ \xfcnicode value" % linesep
     fd = FieldDiff(a, uu, 'attribute')
     self.assertEqual(fd.ndiff(), expected)
Exemplo n.º 4
0
 def testDiffText(self):
     """Test text diff output with different value"""
     a = A()
     b = B()
     uu = U()
     expected = "- value%s+ different value" % linesep
     fd = FieldDiff(a, b, 'attribute')
     self.assertEqual(fd.ndiff(), expected)
     expected = u"- value%s+ \xfcnicode value" % linesep
     fd = FieldDiff(a, uu, 'attribute')
     self.assertEqual(fd.ndiff(), expected)
Exemplo n.º 5
0
 def testDiffText(self):
     """Test text diff output with different value"""
     a = A()
     b = B()
     expected = "- value\n+ different value"
     fd = FieldDiff(a, b, 'attribute')
     self.assertEqual(fd.ndiff(), expected)
Exemplo n.º 6
0
 def testDiffText(self):
     """Test text diff output with different value"""
     a = A()
     b = B()
     expected = "- value\n+ different value"
     fd = FieldDiff(a, b, 'attribute')
     self.assertEqual(fd.ndiff(), expected)