#NEWLINE# @ raises ( AzureXZError ) #NEWLINE# @ patch ( 'subprocess.Popen' ) #NEWLINE# def test_uncompressed_size_raise( self , mock_popen ) : #NEWLINE# #INDENT# mock_xz = mock . Mock ( ) #NEWLINE# mock_xz . communicate = mock . Mock ( return_value = [ 'data' , 'error' ] ) #NEWLINE# mock_popen . returncode = 1 #NEWLINE# mock_popen . return_value = mock_xz #NEWLINE# XZ . uncompressed_size ( '../data/blob.xz' )