def test_figure_rendering(): f = features.Figure() out = f.render() assert type(out) is text_type bounds = f.get_bounds() assert bounds == [[None, None], [None, None]], bounds
def test_figure_double_rendering(): f = features.Figure() out = f.render() out2 = f.render() assert out == out2 bounds = f.get_bounds() assert bounds == [[None, None], [None, None]], bounds
def test_figure_html(): f = features.Figure() out = f.render() out = os.linesep.join([s.strip() for s in out.splitlines() if s.strip()]) assert out.strip() == tmpl.strip(), '\n' + out.strip() + '\n' + '-' * 80 + '\n' + tmpl.strip() # noqa bounds = f.get_bounds() assert bounds == [[None, None], [None, None]], bounds
def test_figure_html(): f = features.Figure() out = f.render() out = os.linesep.join([s for s in out.splitlines() if s.strip()]) print(out) assert out.strip() == tmpl.strip() bounds = f.get_bounds() assert bounds == [[None, None], [None, None]], bounds
def test_figure_creation(): f = features.Figure() assert isinstance(f, Element) bounds = f.get_bounds() assert bounds == [[None, None], [None, None]], bounds
def test_figure_double_rendering(self): f = features.Figure() out = f.render() out2 = f.render() assert out == out2
def test_figure_rendering(self): f = features.Figure() out = f.render() assert type(out) is text_type
def test_figure_creation(self): f = features.Figure()
def test_figure_html(): f = features.Figure() out = f.render() out = os.linesep.join([s for s in out.splitlines() if s.strip()]) print(out) assert out.strip() == tmpl.strip()
def test_figure_creation(): f = features.Figure() assert isinstance(f, Element)