#NEWLINE# def test_client_attach_to_instance( self ) : #NEWLINE# #INDENT# clt = self . client #NEWLINE# vol = self . volume #NEWLINE# inst = fakes . FakeServer ( ) #NEWLINE# mp = utils . random_unicode ( ) #NEWLINE# vol . attach_to_instance = Mock ( ) #NEWLINE# clt . attach_to_instance ( self , inst , mp ) #NEWLINE# vol . attach_to_instance . assert_called_once_with ( inst , mp )