MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_case_sensitivity

Function test_case_sensitivity

pymysql/tests/test_charset.py:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_case_sensitivity():
35 lowercase_latin1 = pymysql.charset.charset_by_name("latin1")
36 assert lowercase_latin1 is not None
37
38 # lowercase and uppercase should resolve to the same charset
39 uppercase_latin1 = pymysql.charset.charset_by_name("LATIN1")
40 assert uppercase_latin1 == lowercase_latin1
41
42 # lowercase and mixed case should resolve to the same charset
43 mixedcase_latin1 = pymysql.charset.charset_by_name("LaTiN1")
44 assert mixedcase_latin1 == lowercase_latin1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected