'Call before every test case.'

def setUp(self):

    super(BanTimeIncrDB, self).setUp()
    if ((Fail2BanDb is None) and (sys.version_info >= (2, 7))):
        raise unittest.SkipTest('Unable    to    import    fail2ban    database    module    as    sqlite    is    not    available.')
    elif (Fail2BanDb is None):
        return
    (_, self.dbFilename) = tempfile.mkstemp('.db', 'fail2ban_')
    self.db = getFail2BanDb(self.dbFilename)
    self.jail = DummyJail()
    self.jail.database = self.db
    self.Observer = ObserverThread()
    Observers.Main = self.Observer
