Lines Matching refs:autospec
638 @patch('%s.SomeClass' % __name__, object(), autospec=True)
940 test = patch(foo_name, autospec=True)(function)
948 test = patch.object(module, 'Foo', autospec=True)(function)
957 @patch('%s.function' % __name__, autospec=True)
977 @patch('%s.function' % __name__, autospec=True,
988 with patch('%s.Foo.static_method' % __name__, autospec=True) as method:
994 with patch('%s.Foo.class_method' % __name__, autospec=True) as method:
1000 patcher = patch('%s.function' % __name__, new=3, autospec=True)
1004 patcher = patch.object(module, 'function', new=3, autospec=True)
1012 patcher = patch(foo_name, autospec=Bar)
1023 patcher = patch(foo_name, autospec=True)
1033 patcher = patch(foo_name, autospec=True)
1148 autospec=True
1152 autospec=True
1617 with patch('unittest.test.testmock.support', autospec=True) as m:
1717 p = patch(MODNAME, autospec=0, **{kwarg: 0})
1733 p = patch(MODNAME, spec=False, spec_set=False, autospec=False)