def test_code_by_name(name, exp): styles = DEFAULT_STYLES.copy() obs = code_by_name(name, styles) assert obs == exp