def loose_mock(request, name=None, **kwargs):
 if (name is None):
  name = request.fixturename
 return Mock(name=name, **kwargs)

def loose_mock ( request , name = None , ** kwargs ) : if ( name is None ) : name = request . fixturename return Mock ( name = name , ** kwargs )
return a "loose" mock .