Changeset 0b3733d in mod_gnutls for test/mgstest
- Timestamp:
- Jan 5, 2020, 3:54:18 AM (14 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 1fe7cac
- Parents:
- bdf5917
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
rbdf5917 r0b3733d 69 69 # variables in the value. 70 70 Content-Type: 'text/plain; charset=ISO-8859-1' 71 # You can check the absence of a header by expecting null: 72 X-Forbidden-Header: null 71 73 body: 72 74 # All strings in this list must occur in the body, in any … … 466 468 'abcdef' 467 469 470 Referencing undefined environment variables causes a KeyError. 471 472 >>> subst_env('${EXAMPLE_UNSET}') 473 Traceback (most recent call last): 474 ... 475 KeyError: 'EXAMPLE_UNSET' 476 477 >>> subst_env(None) is None 478 True 479 468 480 """ 481 if not text: 482 return None 469 483 t = Template(text) 470 484 return t.substitute(os.environ)
Note: See TracChangeset
for help on using the changeset viewer.