def METHOD_NAME(yang_model_name, correct_dict):
    """ General logic for each test case """
    config_db_path = os.path.join(test_path,
                                  'mock_tables/config_db.json')
    parser = YangParser(yang_model_name=yang_model_name,
                        config_db_path=config_db_path,
                        allow_tbl_without_yang=True,
                        debug=False)
    yang_dict = parser.parse_yang_model()
    pretty_log_debug(yang_dict)
    assert yang_dict == correct_dict