Exemplo n.º 1
0
    def test_2_Attr(self):
        'DSCCAPS attribute access'
        c = ds.DSCCAPS()
        c.dwFlags = 1
        c.dwFormats = 2
        c.dwChannels = 4

        self.failUnless(c.dwFlags == 1)
        self.failUnless(c.dwFormats == 2)
        self.failUnless(c.dwChannels == 4)
Exemplo n.º 2
0
    def test_2_Attr(self):
        "DSCCAPS attribute access"
        c = ds.DSCCAPS()
        c.dwFlags = 1
        c.dwFormats = 2
        c.dwChannels = 4

        self.assertTrue(c.dwFlags == 1)
        self.assertTrue(c.dwFormats == 2)
        self.assertTrue(c.dwChannels == 4)
Exemplo n.º 3
0
 def test_1_Type(self):
     'DSCCAPS type'
     c = ds.DSCCAPS()
     self.failUnless(type(c) == ds.DSCCAPSType)
Exemplo n.º 4
0
 def test_1_Type(self):
     "DSCCAPS type"
     c = ds.DSCCAPS()
     self.assertTrue(type(c) == ds.DSCCAPSType)
Exemplo n.º 5
0
 def test_1_Type(self):
     'DSCCAPS type'
     c = ds.DSCCAPS()
     self.assertTrue(isinstance(c, ds.DSCCAPSType))