コード例 #1
0
ファイル: ds_test.py プロジェクト: zgramana/IronLanguages.PCG
    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
ファイル: ds_test.py プロジェクト: mhammond/pywin32
    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
ファイル: ds_test.py プロジェクト: zgramana/IronLanguages.PCG
 def test_1_Type(self):
     'DSBCAPS type'
     c = ds.DSBCAPS()
     self.failUnless(type(c) == ds.DSBCAPSType)
コード例 #4
0
ファイル: ds_test.py プロジェクト: mhammond/pywin32
 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))