Searched refs:MockAnything (Results 1 - 5 of 5) sorted by relevance

/external/protobuf/python/
H A Dmox.py185 new_mock = MockAnything()
212 (method, function, etc) with a MockAnything. This can be overridden to
213 always use a MockAnything by setting use_mock_anything to True.
218 use_mock_anything: bool. True if a MockAnything should be used regardless
268 class MockAnything: class in inherits:
281 A new MockMethod is returned that is aware of the MockAnything's
290 A new MockMethod aware of MockAnything's state (record or replay).
303 A new MockMethod aware of MockAnything's state (record or replay).
317 return (isinstance(rhs, MockAnything) and
359 class MockObject(MockAnything, objec
[all...]
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/
H A Dmox.py275 new_mock = MockAnything(description=description)
301 else (method, function, etc) with a MockAnything. This can be
302 overridden to always use a MockAnything by setting use_mock_anything
308 use_mock_anything: bool. True if a MockAnything should be used
320 if attr_type == MockAnything or attr_type == MockObject:
321 raise TypeError('Cannot mock a MockAnything! Did you remember to '
378 if attr_type == MockAnything or attr_type == MockObject:
379 raise TypeError('Cannot mock a MockAnything! Did you remember to '
428 class MockAnything(object): class in inherits:object
435 """Initialize a new MockAnything
[all...]
/external/chromium-trace/catapult/third_party/mox3/mox3/
H A Dmox.py275 new_mock = MockAnything(description=description)
301 else (method, function, etc) with a MockAnything. This can be
302 overridden to always use a MockAnything by setting use_mock_anything
308 use_mock_anything: bool. True if a MockAnything should be used
320 if attr_type == MockAnything or attr_type == MockObject:
321 raise TypeError('Cannot mock a MockAnything! Did you remember to '
378 if attr_type == MockAnything or attr_type == MockObject:
379 raise TypeError('Cannot mock a MockAnything! Did you remember to '
428 class MockAnything(object): class in inherits:object
435 """Initialize a new MockAnything
[all...]
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/tests/
H A Dtest_mox.py641 """Verify that the MockAnything class works as expected."""
645 self.mock_object = mox.MockAnything()
648 """Calling repr on a MockAnything instance must work."""
649 self.assertEqual('<MockAnything instance>', repr(self.mock_object))
723 self.assertNotEqual(self.mock_object, mox.MockAnything())
755 """Test that MockAnything can even mock a simple callable.
769 self.assertTrue('MockAnything' in repr(self.mock_object))
2009 """Test that user is warned if they try to stub out a MockAnything."""
/external/chromium-trace/catapult/third_party/mox3/mox3/tests/
H A Dtest_mox.py641 """Verify that the MockAnything class works as expected."""
645 self.mock_object = mox.MockAnything()
648 """Calling repr on a MockAnything instance must work."""
649 self.assertEqual('<MockAnything instance>', repr(self.mock_object))
723 self.assertNotEqual(self.mock_object, mox.MockAnything())
755 """Test that MockAnything can even mock a simple callable.
769 self.assertTrue('MockAnything' in repr(self.mock_object))
2009 """Test that user is warned if they try to stub out a MockAnything."""

Completed in 209 milliseconds