panda3d/tests/audio/test_loading.py

6 lines
155 B
Python

import pytest
def test_missing_file(audiomgr):
sound = audiomgr.get_sound('/not/a/valid/file.ogg')
assert str(sound).startswith('NullAudioSound')