Example #1
0
 def test_encoding(self):
     # Regression test for issue #4824
     self.assertIn('Étrange caractère',
                   htmldiff('Étrange caractère'.encode(), ''.encode()))
Example #2
0
 def test_empty(self):
     self.assertEquals(htmldiff('essai'.encode(), 'essai'.encode()),
                       '<p>Pas de changements.</p>')
Example #3
0
 def test_empty(self):
     self.assertEquals(htmldiff('essai'.encode(), 'essai'.encode()), '<p>Pas de changements.</p>')
Example #4
0
 def test_nominal(self):
     self.assertIn('Agrume', htmldiff('Agrume'.encode(), ''.encode()))
Example #5
0
 def test_nominal(self):
     self.assertIn('Agrume', htmldiff('Agrume'.encode(), ''.encode()))
Example #6
0
 def test_encoding(self):
     # Regression test for issue #4824
     self.assertIn('Étrange&nbsp;caractère', htmldiff('Étrange caractère'.encode(), ''.encode()))
Example #7
0
 def test_empty(self):
     self.assertEqual(htmldiff(b"essai", b"essai"),
                      "<p>Pas de changements.</p>")
Example #8
0
 def test_encoding(self):
     # Regression test for issue #4824
     self.assertIn("Étrange caractère",
                   htmldiff("Étrange caractère".encode(), b""))
Example #9
0
 def test_nominal(self):
     self.assertIn("Agrume", htmldiff(b"Agrume", b""))
Example #10
0
 def test_empty(self):
     self.assertEquals(htmldiff("essai".encode(), "essai".encode()),
                       "<p>Pas de changements.</p>")
Example #11
0
 def test_nominal(self):
     self.assertIn("Agrume", htmldiff("Agrume".encode(), "".encode()))