Create a Python module that selectively imports what test cases to run.
With these steps, we will explore selectively picking a smaller set of tests to facilitate a faster test run.
recipe59_test.pyfor writing some tests against our network application.
import logging from network import * import unittest from springpython.database.factory import * from springpython.database.core import *
class EventCorrelatorUnitTests(unittest.TestCase): def setUp(self): db_name = "recipe59.db" factory = Sqlite3ConnectionFactory(db=db_name) self.correlator = EventCorrelator(factory) ...