Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
style = _style_parse("Italic Bold Condensed")
assert style.name == "Condensed Bold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"
style = _style_parse("Bold Oblique")
assert style.name == "Bold Italic"
style = _style_parse("UltCndExtBdIt")
assert style.name =="UltraCondensed ExtraBold Italic"
def test_name():
style = _style_parse("Bold Condensed")
assert style.name == "Condensed Bold"
style = _style_parse("Italic Bold Condensed")
assert style.name == "Condensed Bold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
def test_name():
style = _style_parse("Bold Condensed")
assert style.name == "Condensed Bold"
style = _style_parse("Italic Bold Condensed")
assert style.name == "Condensed Bold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"
style = _style_parse("Bold Oblique")
assert style.name == "Bold Italic"
style = _style_parse("UltCndExtBdIt")
assert style.name =="UltraCondensed ExtraBold Italic"
style = _style_parse("Regular Italic 18pt")
assert style.name == "18pt Italic"
style = _style_parse("Condensed Italic 10pt ExtraBold")
assert style.name == "10pt Condensed ExtraBold Italic"
def test_name():
style = _style_parse("Bold Condensed")
assert style.name == "Condensed Bold"
style = _style_parse("Italic Bold Condensed")
assert style.name == "Condensed Bold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"
style = _style_parse("Bold Oblique")
assert style.name == "Bold Italic"
style = _style_parse("UltCndExtBdIt")
assert style.name =="UltraCondensed ExtraBold Italic"
style = _style_parse("Regular Italic 18pt")
assert style.name == "18pt Italic"
style = _style_parse("Condensed Italic 10pt ExtraBold")
assert style.name == "10pt Condensed ExtraBold Italic"
style = _style_parse("Bold Condensed")
assert style.name == "Condensed Bold"
style = _style_parse("Italic Bold Condensed")
assert style.name == "Condensed Bold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"
style = _style_parse("Bold Oblique")
assert style.name == "Bold Italic"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"
style = _style_parse("Bold Oblique")
assert style.name == "Bold Italic"
style = _style_parse("UltCndExtBdIt")
assert style.name =="UltraCondensed ExtraBold Italic"
style = _style_parse("Regular Italic 18pt")
assert style.name == "18pt Italic"
style = _style_parse("Condensed Italic 10pt ExtraBold")
assert style.name == "10pt Condensed ExtraBold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"
style = _style_parse("Bold Oblique")
assert style.name == "Bold Italic"
style = _style_parse("UltCndExtBdIt")
assert style.name =="UltraCondensed ExtraBold Italic"
style = _style_parse("Regular Italic 18pt")
assert style.name == "18pt Italic"
def test_name():
style = _style_parse("Bold Condensed")
assert style.name == "Condensed Bold"
style = _style_parse("Italic Bold Condensed")
assert style.name == "Condensed Bold Italic"
style = _style_parse("Extra-Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold")
assert style.name == "ExtraBold"
style = _style_parse("Extra Bold Italic")
assert style.name == "ExtraBold Italic"
style = _style_parse("Semi Condensed Extra Light")
assert style.name == "SemiCondensed ExtraLight"
style = _style_parse("wt400 It")
assert style.name == "Italic"
style = _style_parse("Regular Italic")
assert style.name == "Italic"
style = _style_parse("ExLt ExCd It")
assert style.name == "ExtraCondensed ExtraLight Italic"
style = _style_parse("Thn It")
assert style.name == "Thin Italic"