def test_half_pie():
 pie = Pie()
 pie.add('IE', 19.5)
 pie.add('Firefox', 36.6)
 pie.add('Chrome', 36.3)
 pie.add('Safari', 4.5)
 pie.add('Opera', 2.3)
 half = Pie(half_pie=True)
 half.add('IE', 19.5)
 half.add('Firefox', 36.6)
 half.add('Chrome', 36.3)
 half.add('Safari', 4.5)
 half.add('Opera', 2.3)
 assert (pie.render() != half.render())

def test_half_pie ( ) : pie = Pie ( ) pie . add ( 'IE' , 19.5 ) pie . add ( 'Firefox' , 36.6 ) pie . add ( 'Chrome' , 36.3 ) pie . add ( 'Safari' , 4.5 ) pie . add ( 'Opera' , 2.3 ) half = Pie ( half_pie = True ) half . add ( 'IE' , 19.5 ) half . add ( 'Firefox' , 36.6 ) half . add ( 'Chrome' , 36.3 ) half . add ( 'Safari' , 4.5 ) half . add ( 'Opera' , 2.3 ) assert ( pie . render ( ) != half . render ( ) )
test a half pie chart .