Lines Matching refs:Something
31 class Something(object):
242 mock(sentinel.Something, something=sentinel.SomethingElse)
423 mock = Mock(spec=Something().meth)
425 mock = Mock(spec=Something.cmeth)
427 mock = Mock(spec=Something().cmeth)
429 mock = Mock(spec=Something.smeth)
431 mock = Mock(spec=Something().smeth)
577 class Something(object):
598 test_attributes(Mock(spec=Something))
599 test_attributes(Mock(spec=Something()))
1447 class Something:
1457 mock_class = create_autospec(Something)
2055 with mock.patch(f'{__name__}.Something.meth', autospec=True) as mocked:
2058 obj = Something()
2072 with mock.patch(f'{__name__}.Something', autospec=True) as mocked:
2075 obj = Something()
2217 obj = mock(spec=Something)
2218 self.assertIsInstance(obj, Something)
2221 class Something:
2225 obj = Something()
2236 with patch(f'{__name__}.Something.meth', autospect=True): pass
2240 with patch(f'{__name__}.Something.meth', auto_spec=True): pass
2244 with patch(f'{__name__}.Something.meth', set_spec=True): pass
2254 f'{__name__}.Something', meth=DEFAULT, autospect=True): pass
2257 f'{__name__}.Something', meth=DEFAULT, auto_spec=True): pass
2260 f'{__name__}.Something', meth=DEFAULT, set_spec=True): pass
2262 with patch(f'{__name__}.Something.meth', unsafe=True, autospect=True):
2265 with patch(f'{__name__}.Something.meth', unsafe=True, auto_spec=True):
2268 with patch(f'{__name__}.Something.meth', unsafe=True, set_spec=True):