>>> import pygame >>> import fons Tests per a __init__ ==================== >>> im = pygame.Surface((20,40)) >>> rc = pygame.draw.circle(im, (255,0,0), (10,20), 4) >>> f = fons.Fons(im) >>> f.rect >>> f.image.get_size() (20, 80) >>> all(f.image.get_at((x,y))==f.image.get_at((x,y+40)) for x in range(20) for y in range(40)) True >>> im = pygame.Surface((30,25)) >>> rc = pygame.draw.circle(im, (0,0,255), (10,10), 3) >>> f = fons.Fons(im) >>> f.rect >>> f.image.get_size() (30, 50) >>> all(f.image.get_at((x,y))==f.image.get_at((x,y+25)) for x in range(30) for y in range(25)) True Tests per a update ================== >>> f.update() >>> f.rect >>> f.update() >>> f.rect >>> for n in range(654): ... f.update() >>> f.rect