示例#1
0
class TestQuery(unittest.TestCase):
    def setUp(self):
        sys.argv = sys.argv[:1]
        self.logging = LogManager()
        self.l = Logging()
    def tearDown(self):
        LogManager.destroySingleton()
    def testWithInvalidArgs(self):
        tId = 123
        bSynchronous = True
        args = [1, 2, 3]
        try:
            self.l._handler_query(tId, bSynchronous, args)
        except TypeError, _e:
            assert True
        else:
示例#2
0
 def setUp(self):
     sys.argv = sys.argv[:1]
     self.logging = LogManager()
     self.l = Logging()