Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def document_diff(expected, compared, whitespace=True):
    # See if we need to use XML or HTML
    if not _xmldecl_match(expected) and _html_find(expected):
        diff = html_diff
    else:
        diff = xml_diff
    return diff(expected, compared, whitespace)
        


src/a/m/Amara-2.0.0/test/writers/test_node_print.py   Amara(Download)
        out = s.getvalue()
        #self.assertEqual(out, ATOMENTRY1)
        diff = treecompare.document_diff(out, XHTML_EXPECTED_2)
        diff = '\n'.join(diff)
        self.assertFalse(diff, msg=(None, diff))
        out = s.getvalue()
        #self.assertEqual(out, ATOMENTRY1)
        diff = treecompare.document_diff(out, XHTML_EXPECTED_4,
                                         whitespace=False)
        diff = '\n'.join(diff)