def t_handle_certain_symbols(self, raw, cooked): assert Name.clean(raw) == cooked
def t_ignore_most_symbols(self, raw): assert Name.clean(raw) == "mr eric praline"
def t_colons_and_commas(self, raw): assert Name.clean(raw) == "praline, mr eric"
def t_drop_spacing(self, raw): assert Name.clean(raw) == "mr eric praline"
def t_drop_emoji(self, raw): name = Name() assert name.clean(name._pre_clean(raw)) == "spiny norman"
def t_strip_margin_hyphens(self, raw, cooked): assert Name.clean(raw) == cooked