#NEWLINE# def test_env_pairs( ) : #NEWLINE# #INDENT# @ click . command ( ) #NEWLINE# @ arguments . env_pairs #NEWLINE# def greet( env_pairs ) : #NEWLINE# #INDENT# for ( k , v ) in env_pairs . items ( ) : #NEWLINE# #INDENT# click . echo ( ( '(%s: %s)' % ( k , v ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# result = CliRunner ( ) . invoke ( greet , [ 'shp=kpr' , 'MYKEY=MYVALUE' , 'MY_OTHER_KEY=MY_OTHER=VALUE' , 'EMPTY_KEY' ] ) #NEWLINE# assert ( '(shp: kpr)' in result . output ) #NEWLINE# assert ( '(MYKEY: MYVALUE)' in result . output ) #NEWLINE# assert ( '(MY_OTHER_KEY: MY_OTHER=VALUE)' in result . output ) #NEWLINE# assert ( '(EMPTY_KEY: )' in result . output )