<s> from test . test_support import TESTFN , run_unittest <EOL> import unittest <EOL> from test import audiotests <EOL> import sys <EOL> import sunau <EOL> class SunauTest ( audiotests . AudioWriteTests , <EOL> audiotests . AudioTestsWithSourceFile ) : <EOL> module = sunau <EOL> class SunauPCM8Test ( SunauTest , unittest . TestCase ) : <EOL> sndfilename = '<STR_LIT>' <EOL> sndfilenframes = <NUM_LIT> <EOL> nchannels = <NUM_LIT:2> <EOL> sampwidth = <NUM_LIT:1> <EOL> framerate = <NUM_LIT> <EOL> nframes = <NUM_LIT> <EOL> comptype = '<STR_LIT>' <EOL> compname = '<STR_LIT>' <EOL> frames = audiotests . fromhex ( """<STR_LIT>""" ) <EOL> class SunauPCM16Test ( SunauTest , unittest . TestCase ) : <EOL> sndfilename = '<STR_LIT>' <EOL> sndfilenframes = <NUM_LIT> <EOL> nchannels = <NUM_LIT:2> <EOL> sampwidth = <NUM_LIT:2> <EOL> framerate = <NUM_LIT> <EOL> nframes = <NUM_LIT> <EOL> comptype = '<STR_LIT>' <EOL> compname = '<STR_LIT>' <EOL> frames = audiotests . fromhex ( """<STR_LIT>""" ) <EOL> class SunauPCM32Test ( SunauTest , unittest . TestCase ) : <EOL> sndfilename = '<STR_LIT>' <EOL> sndfilenframes = <NUM_LIT> <EOL> nchannels = <NUM_LIT:2> <EOL> sampwidth = <NUM_LIT:4> <EOL> framerate = <NUM_LIT> <EOL> nframes = <NUM_LIT> <EOL> comptype = '<STR_LIT>' <EOL> compname = '<STR_LIT>' <EOL> frames = audiotests . fromhex ( """<STR_LIT>""" ) <EOL> class SunauULAWTest ( SunauTest , unittest . TestCase ) : <EOL> sndfilename = '<STR_LIT>' <EOL> sndfilenframes = <NUM_LIT> <EOL> nchannels = <NUM_LIT:2> <EOL> sampwidth = <NUM_LIT:2> <EOL> framerate = <NUM_LIT> <EOL> nframes = <NUM_LIT> <EOL> comptype = '<STR_LIT>' <EOL> compname = '<STR_LIT>' <EOL> frames = audiotests . fromhex ( """<STR_LIT>""" ) <EOL> if sys . byteorder != '<STR_LIT>' : <EOL> frames = audiotests . byteswap2 ( frames ) <EOL> def test_main ( ) : <EOL> run_unittest ( SunauPCM8Test , SunauPCM16Test , SunauPCM16Test , <EOL> SunauPCM32Test , SunauULAWTest ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
