class documentation

class TestUnicodeDammit(object): (source)

View In Hierarchy

Standalone tests of UnicodeDammit.

Method test_convert_hebrew Undocumented
Method test_detect_utf8 Undocumented
Method test_dont_see_smart_quotes_where_there_are_none Undocumented
Method test_exclude_encodings Undocumented
Method test_ignore_inappropriate_codecs Undocumented
Method test_ignore_invalid_codecs Undocumented
Method test_smart_quotes_to Verify the functionality of the smart_quotes_to argument to the UnicodeDammit constructor.
Method test_unicode_input Undocumented
def test_convert_hebrew(self): (source)

Undocumented

def test_detect_utf8(self): (source)

Undocumented

def test_dont_see_smart_quotes_where_there_are_none(self): (source)

Undocumented

def test_exclude_encodings(self): (source)

Undocumented

def test_ignore_inappropriate_codecs(self): (source)

Undocumented

def test_ignore_invalid_codecs(self): (source)

Undocumented

@pytest.mark.parametrize('smart_quotes_to,expect_converted', [(None, '‘’“”'), ('xml', '‘’“”'), ('html', '‘’“”'), ('ascii', '\'\''+'""')])
def test_smart_quotes_to(self, smart_quotes_to, expect_converted): (source)

Verify the functionality of the smart_quotes_to argument to the UnicodeDammit constructor.

def test_unicode_input(self): (source)

Undocumented