Public Member Functions | |
def | __init__ (self, key) |
def | __init__ (self, key) |
def | __repr__ (self) |
def | __repr__ (self) |
def | equals (self, rhs) |
def | equals (self, rhs) |
![]() | |
def | __eq__ (self, rhs) |
def | __eq__ (self, rhs) |
def | __ne__ (self, rhs) |
def | __ne__ (self, rhs) |
Private Attributes | |
_key | |
Checks whether an item (or key) is in a list (or dict) parameter. Example: mock_dao.GetUsersInfo(In('expectedUserName')).AndReturn(mock_result)
Definition at line 939 of file bloaty/third_party/protobuf/python/mox.py.
def mox.In.__init__ | ( | self, | |
key | |||
) |
Initialize. Args: # key is any thing that could be in a list or a key in a dict
Definition at line 946 of file bloaty/third_party/protobuf/python/mox.py.
def mox.In.__init__ | ( | self, | |
key | |||
) |
Initialize. Args: # key is any thing that could be in a list or a key in a dict
Definition at line 946 of file protobuf/python/mox.py.
def mox.In.__repr__ | ( | self | ) |
Definition at line 967 of file bloaty/third_party/protobuf/python/mox.py.
def mox.In.__repr__ | ( | self | ) |
Definition at line 967 of file protobuf/python/mox.py.
def mox.In.equals | ( | self, | |
rhs | |||
) |
Check to see whether key is in rhs. Args: rhs: dict Returns: bool
Reimplemented from mox.Comparator.
Definition at line 955 of file protobuf/python/mox.py.
def mox.In.equals | ( | self, | |
rhs | |||
) |
Check to see whether key is in rhs. Args: rhs: dict Returns: bool
Reimplemented from mox.Comparator.
Definition at line 955 of file bloaty/third_party/protobuf/python/mox.py.
|
private |
Definition at line 953 of file bloaty/third_party/protobuf/python/mox.py.