pyecharts/test/test_display.py
陈键冬 f4e493bacb Fix: 修复 Overlap+Grid 叠加时坐标轴索引混乱的问题 (#1133)
* Fix: 修复 Overlap+Grid 叠加时坐标轴索引混乱的问题

* Fix: test

* Remove: space

* Add the judgment of Non-Rectchart and fix push problem

* Fix some problem

* Add: more tests

* Format: import

* Add: line example

* Fix: test
2019-05-22 07:38:21 +01:00

18 lines
452 B
Python

from nose.tools import eq_
from pyecharts.render.display import HTML, Javascript
def test_display_html():
html_content = "<p>hello world<p/>"
obj = HTML(html_content)
eq_(obj.data, html_content)
eq_(obj.__html__(), html_content)
def test_display_javascript():
js_content = "console.log('hello world')"
obj = Javascript(js_content)
eq_(obj.data, js_content)
eq_(obj._repr_javascript_(), js_content)