def test_view(self, chart, _chart): bg = BaseGraph() bg.chart = mock.Mock(**{"view.return_value": chart}) bg.width = 400 bg.title = "test" assert str(bg.view()) == str( chart_view(_chart, width=bg.width, title=bg.title) )
def test_view(self, chart, _chart): bg = BaseGraph() bg.chart = chart bg.width = 400 assert str(bg.view()) == str(chart_view(_chart, width=bg.width))