#NEWLINE# def test_is_running_uuid_true( self ) : #NEWLINE# #INDENT# mock_open = self . useFixture ( tools . OpenFixture ( '/proc/34/cmdline' , 'python 1234' ) ) . mock_open #NEWLINE# p = daemon . Pidfile ( 'thefile' , 'python' , uuid = '1234' ) #NEWLINE# with mock . patch . object ( self , 'read' ) as read : #NEWLINE# #INDENT# read . return_value = 34 #NEWLINE# self . assertTrue ( p . is_running ( ) ) #NEWLINE# #UNINDENT# mock_open . assert_called_once_with ( '/proc/34/cmdline' , 'r' )