__init__.py
Go to the documentation of this file.
00001 import unittest
00002 
00003 from tests.server_commands import ServerCommandsTestCase
00004 from tests.connection_pool import ConnectionPoolTestCase
00005 from tests.pipeline import PipelineTestCase
00006 from tests.lock import LockTestCase
00007 from tests.pubsub import PubSubTestCase, PubSubRedisDownTestCase
00008 from tests.encoding import (PythonParserEncodingTestCase,
00009                             HiredisEncodingTestCase)
00010 
00011 try:
00012     import hiredis
00013     use_hiredis = True
00014 except ImportError:
00015     use_hiredis = False
00016 
00017 
00018 def all_tests():
00019     suite = unittest.TestSuite()
00020     suite.addTest(unittest.makeSuite(ServerCommandsTestCase))
00021     suite.addTest(unittest.makeSuite(ConnectionPoolTestCase))
00022     suite.addTest(unittest.makeSuite(PipelineTestCase))
00023     suite.addTest(unittest.makeSuite(LockTestCase))
00024     suite.addTest(unittest.makeSuite(PubSubTestCase))
00025     suite.addTest(unittest.makeSuite(PubSubRedisDownTestCase))
00026     suite.addTest(unittest.makeSuite(PythonParserEncodingTestCase))
00027     if use_hiredis:
00028         suite.addTest(unittest.makeSuite(HiredisEncodingTestCase))
00029     return suite


rocon_python_redis
Author(s): Andy McCurdy
autogenerated on Fri May 2 2014 10:35:49