'DSCAPS attribute access'

def test_2_Attr(self):

    c = ds.DSCAPS()
    c.dwFlags = 1
    c.dwMinSecondarySampleRate = 2
    c.dwMaxSecondarySampleRate = 3
    c.dwPrimaryBuffers = 4
    c.dwMaxHwMixingAllBuffers = 5
    c.dwMaxHwMixingStaticBuffers = 6
    c.dwMaxHwMixingStreamingBuffers = 7
    c.dwFreeHwMixingAllBuffers = 8
    c.dwFreeHwMixingStaticBuffers = 9
    c.dwFreeHwMixingStreamingBuffers = 10
    c.dwMaxHw3DAllBuffers = 11
    c.dwMaxHw3DStaticBuffers = 12
    c.dwMaxHw3DStreamingBuffers = 13
    c.dwFreeHw3DAllBuffers = 14
    c.dwFreeHw3DStaticBuffers = 15
    c.dwFreeHw3DStreamingBuffers = 16
    c.dwTotalHwMemBytes = 17
    c.dwFreeHwMemBytes = 18
    c.dwMaxContigFreeHwMemBytes = 19
    c.dwUnlockTransferRateHwBuffers = 20
    c.dwPlayCpuOverheadSwBuffers = 21
    self.failUnless((c.dwFlags == 1))
    self.failUnless((c.dwMinSecondarySampleRate == 2))
    self.failUnless((c.dwMaxSecondarySampleRate == 3))
    self.failUnless((c.dwPrimaryBuffers == 4))
    self.failUnless((c.dwMaxHwMixingAllBuffers == 5))
    self.failUnless((c.dwMaxHwMixingStaticBuffers == 6))
    self.failUnless((c.dwMaxHwMixingStreamingBuffers == 7))
    self.failUnless((c.dwFreeHwMixingAllBuffers == 8))
    self.failUnless((c.dwFreeHwMixingStaticBuffers == 9))
    self.failUnless((c.dwFreeHwMixingStreamingBuffers == 10))
    self.failUnless((c.dwMaxHw3DAllBuffers == 11))
    self.failUnless((c.dwMaxHw3DStaticBuffers == 12))
    self.failUnless((c.dwMaxHw3DStreamingBuffers == 13))
    self.failUnless((c.dwFreeHw3DAllBuffers == 14))
    self.failUnless((c.dwFreeHw3DStaticBuffers == 15))
    self.failUnless((c.dwFreeHw3DStreamingBuffers == 16))
    self.failUnless((c.dwTotalHwMemBytes == 17))
    self.failUnless((c.dwFreeHwMemBytes == 18))
    self.failUnless((c.dwMaxContigFreeHwMemBytes == 19))
    self.failUnless((c.dwUnlockTransferRateHwBuffers == 20))
    self.failUnless((c.dwPlayCpuOverheadSwBuffers == 21))
