def test_daisydiff_unicode(self): a = u'\N{SNOWMAN}' b = u'\N{INTERROBANG}' diff = daisydiff(a, b) self.assertIn(a, diff) self.assertIn(b, diff)
def test_daisydiff(self): a = """<html> <body> <p>foo </body> </html>""" b = """<html> <body> <p>bar </body> </html>""" diff = daisydiff(a, b) self.assertIn('foo', diff) self.assertIn('bar', diff)