def test_fail_loadtex(self): tex1 = media.loadmedia("uniteststuff/file.fail", toram=False)
def test_loadmsc(self): msc = media.loadmedia("uniteststuff/cattails.ogg", mediatype="msc") nose.tools.ok_(msc, "Se a cargado algo en la variable msc") nose.tools.ok_(isinstance(msc, sfml.Music), "Una musica se a cargado correctamente")
def test_loadimg(self): img = media.loadmedia("uniteststuff/imgtex.png") nose.tools.ok_(img, "Se a cargado algo en la variable img") nose.tools.ok_(isinstance(img, sfml.Image), "Una imagen se a cargado correctamente")
def test_loadsnd(self): snd = media.loadmedia("uniteststuff/sound.flac", mediatype="snd") nose.tools.ok_(snd, "Se a cargado algo en la variable snd") nose.tools.ok_(isinstance(snd, sfml.Sound), "Un sonido se a cargado correctamente")
def test_loadtex(self): texture = media.loadmedia("uniteststuff/imgtex.png", toram=False) nose.tools.ok_(texture, "Se a cargado algo en la variable texture") nose.tools.ok_(isinstance(texture, sfml.Texture), "Una textura se a cargado correctamente")