def test_classes(Chart):
 chart = Chart()
 assert (chart.render_pyquery().attr('class') == 'pygal-chart')
 chart = Chart(classes=())
 assert (not chart.render_pyquery().attr('class'))
 chart = Chart(classes=(_ellipsis,))
 assert (chart.render_pyquery().attr('class') == 'pygal-chart')
 chart = Chart(classes=('graph',))
 assert (chart.render_pyquery().attr('class') == 'graph')
 chart = Chart(classes=('pygal-chart', 'graph'))
 assert (chart.render_pyquery().attr('class') == 'pygal-chart graph')
 chart = Chart(classes=(_ellipsis, 'graph'))
 assert (chart.render_pyquery().attr('class') == 'pygal-chart graph')
 chart = Chart(classes=('graph', _ellipsis))
 assert (chart.render_pyquery().attr('class') == 'graph pygal-chart')

def test_classes ( Chart ) : chart = Chart ( ) assert ( chart . render_pyquery ( ) . attr ( 'class' ) == 'pygal-chart' ) chart = Chart ( classes = ( ) ) assert ( not chart . render_pyquery ( ) . attr ( 'class' ) ) chart = Chart ( classes = ( _ellipsis , ) ) assert ( chart . render_pyquery ( ) . attr ( 'class' ) == 'pygal-chart' ) chart = Chart ( classes = ( 'graph' , ) ) assert ( chart . render_pyquery ( ) . attr ( 'class' ) == 'graph' ) chart = Chart ( classes = ( 'pygal-chart' , 'graph' ) ) assert ( chart . render_pyquery ( ) . attr ( 'class' ) == 'pygal-chart graph' ) chart = Chart ( classes = ( _ellipsis , 'graph' ) ) assert ( chart . render_pyquery ( ) . attr ( 'class' ) == 'pygal-chart graph' ) chart = Chart ( classes = ( 'graph' , _ellipsis ) ) assert ( chart . render_pyquery ( ) . attr ( 'class' ) == 'graph pygal-chart' )
test classes option .