From a4f7728fadd85ba1da92e6c920256b2b4ba8cf0d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 7 Apr 2012 22:15:31 +1200 Subject: XML/HTML pretty view tweaks. --- test/test_console_contentview.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/test_console_contentview.py b/test/test_console_contentview.py index cf2ab1e5..e0dbd577 100644 --- a/test/test_console_contentview.py +++ b/test/test_console_contentview.py @@ -32,7 +32,7 @@ class uContentView(libpry.AutoTree): ), "foo" ) - assert f is cv.view_xmlish + assert f is cv.view_html f = cv.get_view_func( cv.VIEW_AUTO, @@ -50,7 +50,7 @@ class uContentView(libpry.AutoTree): ), "" ) - assert f is cv.view_xmlish + assert f is cv.view_xml def test_view_urlencoded(self): d = utils.urlencode([("one", "two"), ("three", "four")]) @@ -71,18 +71,17 @@ class uContentView(libpry.AutoTree): assert cv.view_json([], "[" + ",".join(["0"]*cv.VIEW_CUTOFF) + "]") def test_view_xml(self): - #assert cv.view_xml([], "") - #assert not cv.view_xml([], "") - + assert cv.view_xml([], "") + assert not cv.view_xml([], "") s = """ - """ - print cv.view_xml([], s) + assert cv.view_xml([], s) def test_view_raw(self): assert cv.view_raw([], "foo") @@ -170,7 +169,7 @@ Larry encoding.encode('gzip', "[1, 2, 3]") ) assert "decoded gzip" in r[0] - assert "XML" in r[0] + assert "Raw" in r[0] tests = [ -- cgit v1.2.3