#NEWLINE# def test_await_pid( self ) : #NEWLINE# #INDENT# with mock . patch . object ( ProcessManager , 'await_metadata_by_name' ) as mock_await : #NEWLINE# #INDENT# self . pm . await_pid ( 5 ) #NEWLINE# #UNINDENT# mock_await . assert_called_once_with ( mock_await . pm . name , 'pid' , 5 , mock . ANY )