'WAVEFORMATEX attribute access'

def test_2_Attr(self):

    w = pywintypes.WAVEFORMATEX()
    w.wFormatTag = pywintypes.WAVE_FORMAT_PCM
    w.nChannels = 2
    w.nSamplesPerSec = 44100
    w.nAvgBytesPerSec = 176400
    w.nBlockAlign = 4
    w.wBitsPerSample = 16
    self.failUnless((w.wFormatTag == 1))
    self.failUnless((w.nChannels == 2))
    self.failUnless((w.nSamplesPerSec == 44100))
    self.failUnless((w.nAvgBytesPerSec == 176400))
    self.failUnless((w.nBlockAlign == 4))
    self.failUnless((w.wBitsPerSample == 16))
