This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test import TestCase | |
from doctest import Example | |
from lxml.doctestcompare import LXMLOutputChecker | |
class XmlTestCase(TestCase): | |
def assertXmlEqual(self, got, want): | |
checker = LXMLOutputChecker() | |
if not checker.check_output(want, got, 0): | |
message = checker.output_difference(Example('', want), got, 0) | |
raise AssertionError(message) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> | |
<META HTTP-EQUIV="Expires" CONTENT="-1"> | |
<title>test page</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react.js"></script> |