From: "Jesús Gabriel y Galán" Date: 2010-06-11T02:16:59+09:00 Subject: Re: Question about testing self.inherited On Thu, Jun 10, 2010 at 6:40 PM, Rein Henrichs wrote: > On 2010-06-10 09:30:24 -0700, Jesús Gabriel y Galán said > >> When I run these tests, the second one fails, probably is running >> before the other one, defining the class, I guess. Is there a good way >> to test these cases that I'm not seeing? Is the above strategy a good >> one to keep track of existing subclasses of the Game class? I am using >> the available games to create a menu for the user to choose which game >> to play. >> >> Thanks, >> >> Jesus. > > Write a method to clear your available_games array for testing and use it in > the setup. Doh, that's pretty straightforward !!!! Thanks :-) Jesus.