class documentation

class TestEntitySubstitution(object): (source)

View In Hierarchy

Standalone tests of the EntitySubstitution class.

def setup_method(self): (source)

Undocumented

def test_html5_entity(self): (source)

Undocumented

def test_html5_entity_with_variation_selector(self): (source)

Undocumented

def test_quotes_not_html_substituted(self): (source)

There's no need to do this except inside attribute values.

@pytest.mark.parametrize('original,substituted', [('foo∀☃õbar', 'foo∀☃õbar'), ('‘’foo“”', '‘’foo“”')])
def test_substitute_html(self, original, substituted): (source)

Undocumented

def test_xml_attribute_quoting_escapes_single_quotes_when_value_contains_both_single_and_double_quotes(self): (source)

Undocumented

def test_xml_attribute_quoting_normally_uses_double_quotes(self): (source)

Undocumented

def test_xml_attribute_quoting_uses_single_quotes_when_value_contains_double_quotes(self): (source)

Undocumented

def test_xml_converstion_includes_no_quotes_if_make_quoted_attribute_is_false(self): (source)

Undocumented

def test_xml_quotes_arent_escaped_when_value_is_not_being_quoted(self): (source)

Undocumented

def test_xml_quoting_handles_ampersands(self): (source)

Undocumented

def test_xml_quoting_handles_angle_brackets(self): (source)

Undocumented

def test_xml_quoting_ignoring_ampersands_when_they_are_part_of_an_entity(self): (source)

Undocumented

def test_xml_quoting_including_ampersands_when_they_are_part_of_an_entity(self): (source)

Undocumented

Undocumented