def test_check_conection_bad(def_config):
    badconn = chkdb._BadConnection('Error')
    assert chkdb.check_connection(badconn,
                                  def_config) == chkdb.CheckState.FATAL
def test_check_conection_good(temp_db_conn, def_config):
    assert chkdb.check_connection(temp_db_conn,
                                  def_config) == chkdb.CheckState.OK