Esempio n. 1
0
    def test_2_Attr(self):
        'DSCBCAPS attribute access'
        c = ds.DSCBCAPS()
        c.dwFlags = 1
        c.dwBufferBytes = 2

        self.failUnless(c.dwFlags == 1)
        self.failUnless(c.dwBufferBytes == 2)
Esempio n. 2
0
    def test_2_Attr(self):
        "DSCBCAPS attribute access"
        c = ds.DSCBCAPS()
        c.dwFlags = 1
        c.dwBufferBytes = 2

        self.assertTrue(c.dwFlags == 1)
        self.assertTrue(c.dwBufferBytes == 2)
Esempio n. 3
0
 def test_1_Type(self):
     'DSCBCAPS type'
     c = ds.DSCBCAPS()
     self.failUnless(type(c) == ds.DSCBCAPSType)
Esempio n. 4
0
 def test_1_Type(self):
     "DSCBCAPS type"
     c = ds.DSCBCAPS()
     self.assertTrue(type(c) == ds.DSCBCAPSType)
Esempio n. 5
0
 def test_1_Type(self):
     'DSCBCAPS type'
     c = ds.DSCBCAPS()
     self.assertTrue(isinstance(c, ds.DSCBCAPSType))