Beispiel #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')
 def testInitialize(self):
     """Tests the __init__ function."""
     source_type.WMIQuerySourceType(query=u'test')