def setUp(self): pygame.cdrom.init() #TODO: try: self.cd = pygame.cdrom.CD(0) except pygame.error: self.cd = None