def test_savepng():
    T = ChaosGame(5, 0.5)
    T.iterate(50)
    T.savepng("outfile.pic")
def test_savepng():
    a = ChaosGame(3)
    a.iterate(30000)
    a.savepng('sierpinski.pdf')