'Call before every test case.'

def setUp(self):

    super(DatabaseTest, self).setUp()
    if (Fail2BanDb is None):
        raise unittest.SkipTest('Unable    to    import    fail2ban    database    module    as    sqlite    is    not    available.')
    self.dbFilename = None
    if (not unittest.F2B.memory_db):
        (_, self.dbFilename) = tempfile.mkstemp('.db', 'fail2ban_')
    self.db = getFail2BanDb(self.dbFilename)
