test — alsaaudio documentation 0.10.1 documentation

# `test`

## Module Contents

### Classes

`MixerTest` | Test Mixer objects
`PCMTest` | Test PCM objects
`PollDescriptorArgsTest` | Test invalid args for polldescriptors_revents (takes a list of tuples of 2 integers)

### Attributes

`PCMMethods` |
`PCMDeprecatedMethods` |
`MixerMethods` |

test.PCMMethods = [('pcmtype', None), ('pcmmode', None), ('cardname', None)]

test.PCMDeprecatedMethods = [('setchannels', (2,)), ('setrate', (44100,)), ('setformat', ()), ('setperiodsize', (320,))]

test.MixerMethods = [('cardname', None), ('mixer', None), ('mixerid', None), ('switchcap', None), ('volumecap',...

class test.MixerTest(methodName='runTest')

  Bases: `unittest.TestCase`

  Test Mixer objects

  testMixer()

    Open the default Mixers and the Mixers on every card

  testMixerAll()

    Run common Mixer methods on an open object

  testMixerClose()

    Run common Mixer methods on a closed object and verify it raises an error

class test.PCMTest(methodName='runTest')

  Bases: `unittest.TestCase`

  Test PCM objects

  testPCM()

    Open a PCM object on every card

  testPCMAll()

    Run all PCM methods on an open object

  testPCMClose()

    Run all PCM methods on a closed object and verify it raises an error

  testPCMDeprecated()

class test.PollDescriptorArgsTest(methodName='runTest')

  Bases: `unittest.TestCase`

  Test invalid args for polldescriptors_revents (takes a list of tuples of 2 integers)

  testArgsNoList()
  testArgsListButNoTuples()
  testArgsListButInvalidTuples()
  testArgsListTupleWrongLength()