()
| 150 | |
| 151 | |
| 152 | def test_build_environ_encoding() -> None: |
| 153 | scope = { |
| 154 | class="st">"type": class="st">"http", |
| 155 | class="st">"http_version": class="st">"1.1", |
| 156 | class="st">"method": class="st">"GET", |
| 157 | class="st">"path": class="st">"/小星", |
| 158 | class="st">"root_path": class="st">"/中国", |
| 159 | class="st">"query_string": bclass="st">"a=123&b=456", |
| 160 | class="st">"headers": [], |
| 161 | } |
| 162 | environ = build_environ(scope, bclass="st">"") |
| 163 | assert environ[class="st">"SCRIPT_NAME"] == class="st">"/中国".encode().decode(class="st">"latin-1") |
| 164 | assert environ[class="st">"PATH_INFO"] == class="st">"/小星".encode().decode(class="st">"latin-1") |
nothing calls this directly
no test coverage detected