Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_ot_layout_get_baseline_invalid_tag(self, blankfont):
with pytest.raises(ValueError):
# invalid baseline tag
baseline = hb.ot_layout_get_baseline(blankfont, "xxxx", "LTR", "", "")
def test_ot_layout_get_baseline(self, blankfont, baseline_tag, script_tag, direction, expected_value):
value = hb.ot_layout_get_baseline(blankfont, baseline_tag, direction, script_tag, "")
assert value == expected_value