def testLoadSound(self): import pygame pygame.init() fqFileName: str = self.getFullResourcePath(TEST_SOUND_RELATIVE_PATH) dummySound = ResourceUtility.load_sound(fqFileName) self.logger.info(f"{dummySound}")
def testLoadSoundFail(self): fqFileName: str = self.getFullResourcePath(TEST_SOUND_RELATIVE_PATH) ResourceUtility.sound_cache = None dummySound = ResourceUtility.load_sound(fqFileName) self.assertEqual(first=ResourceUtility.dummy_sound, second=dummySound, msg="Did not get the dummy sound")