webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions | Variables
webkitpy.thirdparty.mock Namespace Reference

Classes

class  _patch
 
class  Mock
 
class  OldStyleClass
 
class  Sentinel
 
class  SentinelObject
 

Functions

def patch_object (target, attribute, new=DEFAULT, spec=None, create=False)
 
def patch (target, new=DEFAULT, spec=None, create=False)
 

Variables

 sentinel = Sentinel()
 
 DEFAULT = sentinel.DEFAULT
 
 ClassType = type(OldStyleClass)
 

Function Documentation

◆ patch()

def webkitpy.thirdparty.mock.patch (   target,
  new = DEFAULT,
  spec = None,
  create = False 
)

◆ patch_object()

def webkitpy.thirdparty.mock.patch_object (   target,
  attribute,
  new = DEFAULT,
  spec = None,
  create = False 
)

Variable Documentation

◆ ClassType

webkitpy.thirdparty.mock.ClassType = type(OldStyleClass)

◆ DEFAULT

webkitpy.thirdparty.mock.DEFAULT = sentinel.DEFAULT

◆ sentinel

webkitpy.thirdparty.mock.sentinel = Sentinel()