예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
def test_figure_creation():
    f = features.Figure()
    assert isinstance(f, Element)

    bounds = f.get_bounds()
    assert bounds == [[None, None], [None, None]], bounds
예제 #6
0
 def test_figure_double_rendering(self):
     f = features.Figure()
     out = f.render()
     out2 = f.render()
     assert out == out2
예제 #7
0
 def test_figure_rendering(self):
     f = features.Figure()
     out = f.render()
     assert type(out) is text_type
예제 #8
0
 def test_figure_creation(self):
     f = features.Figure()
예제 #9
0
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()
예제 #10
0
def test_figure_creation():
    f = features.Figure()
    assert isinstance(f, Element)