示例#1
0
    def test_2_Attr(self):
        'DSBCAPS attribute access'
        c = ds.DSBCAPS()
        c.dwFlags = 1
        c.dwBufferBytes = 2
        c.dwUnlockTransferRate = 3
        c.dwPlayCpuOverhead = 4

        self.failUnless(c.dwFlags == 1)
        self.failUnless(c.dwBufferBytes == 2)
        self.failUnless(c.dwUnlockTransferRate == 3)
        self.failUnless(c.dwPlayCpuOverhead == 4)
示例#2
0
    def test_2_Attr(self):
        "DSBCAPS attribute access"
        c = ds.DSBCAPS()
        c.dwFlags = 1
        c.dwBufferBytes = 2
        c.dwUnlockTransferRate = 3
        c.dwPlayCpuOverhead = 4

        self.assertTrue(c.dwFlags == 1)
        self.assertTrue(c.dwBufferBytes == 2)
        self.assertTrue(c.dwUnlockTransferRate == 3)
        self.assertTrue(c.dwPlayCpuOverhead == 4)
示例#3
0
 def test_1_Type(self):
     'DSBCAPS type'
     c = ds.DSBCAPS()
     self.failUnless(type(c) == ds.DSBCAPSType)
示例#4
0
 def test_1_Type(self):
     "DSBCAPS type"
     c = ds.DSBCAPS()
     self.assertTrue(type(c) == ds.DSBCAPSType)
示例#5
0
 def test_1_Type(self):
     'DSBCAPS type'
     c = ds.DSBCAPS()
     self.assertTrue(isinstance(c, ds.DSBCAPSType))