def test_pygame2_sdl_cdrom_init(self): # __doc__ (as of 2009-12-14) for pygame2.sdl.cdrom.init: # init () -> None # # Initializes the CD-ROM subsystem of the SDL library. self.assertEqual (cdrom.init (), None) self.assertTrue (cdrom.was_init ()) self.assertEqual (cdrom.quit (), None) self.assertFalse (cdrom.was_init ())
def test_pygame2_sdl_cdrom_was_init(self): # __doc__ (as of 2009-12-14) for pygame2.sdl.cdrom.was_init: # was_init () -> bool # # Returns, whether the CD-ROM subsystem of the SDL library is initialized. self.assertFalse (cdrom.was_init ()) self.assertEqual (cdrom.init (), None) self.assertTrue (cdrom.was_init ()) self.assertEqual (cdrom.quit (), None) self.assertFalse (cdrom.was_init ())