Exemplo n.º 1
0
    def testInitialize(self):
        """Tests the __init__ function."""
        source_type.WMIQuerySourceType(query=u'test')

        with self.assertRaises(TypeError):
            source_type.WMIQuerySourceType(bogus=u'bogus')

        with self.assertRaises(TypeError):
            source_type.WMIQuerySourceType(query=u'test', bogus=u'bogus')
Exemplo n.º 2
0
 def testInitialize(self):
     """Tests the __init__ function."""
     source_type.WMIQuerySourceType(query=u'test')