#NEWLINE# @ requires_usable_pip #NEWLINE# def test_bootstrap_version( self ) : #NEWLINE# #INDENT# with test . test_support . captured_stderr ( ) as stderr : #NEWLINE# #INDENT# with self . assertRaises ( SystemExit ) : #NEWLINE# #INDENT# ensurepip . _main ( [ '--version' ] ) #NEWLINE# #UNINDENT# #UNINDENT# result = stderr . getvalue ( ) . strip ( ) #NEWLINE# self . assertEqual ( result , EXPECTED_VERSION_OUTPUT ) #NEWLINE# self . assertFalse ( self . run_pip . called )