Lines Matching refs:foo_name
61 foo_name = '%s.Foo' % __name__
733 patcher = patch(foo_name, 'bar', 3)
739 patcher = patch(foo_name, 'bar', 3)
852 patcher = patch(foo_name, **kwargs)
940 test = patch(foo_name, autospec=True)(function)
1042 patcher = patch(foo_name, autospec=Bar)
1053 patcher = patch(foo_name, autospec=True)
1063 patcher = patch(foo_name, autospec=True)
1090 patcher = patch(foo_name, new_callable=NonCallableMagicMock)
1121 patcher = patch(foo_name, new_callable=Bar, arg1=1, arg2=2)
1136 patcher = patch(foo_name, new_callable=Bar, spec=Bar)
1143 patcher = patch(foo_name, new_callable=Bar, spec_set=Bar)
1152 non_existent_attr = '%s.weeeee' % foo_name
1167 ValueError, patch, foo_name, new=object(), new_callable=MagicMock
1177 ValueError, patch, foo_name, new_callable=MagicMock,
1196 p = patch(foo_name, new_callable=Klass, **kwargs)
1210 p = patch(foo_name, new_callable=NotAMock, spec=True)
1236 SomeTest = patch(foo_name, new_callable=SomeClass)(SomeTest)
1247 patcher1 = patch.multiple(foo_name, f=1, g=2)
1264 @patch.multiple(foo_name, f=3, g=4)
1274 self.assertRaises(ValueError, patch.multiple, foo_name)
1283 @patch.multiple(foo_name, f=DEFAULT, g=3, foo=DEFAULT)
1323 @patch.multiple(foo_name, f=DEFAULT)
1324 @patch.multiple(foo_name, foo=DEFAULT)
1325 @patch(foo_name + '.g')
1329 @patch.multiple(foo_name, f=DEFAULT)
1330 @patch(foo_name + '.g')
1331 @patch.multiple(foo_name, foo=DEFAULT)
1335 @patch(foo_name + '.g')
1336 @patch.multiple(foo_name, f=DEFAULT)
1337 @patch.multiple(foo_name, foo=DEFAULT)
1366 patcher = patch.multiple(foo_name, f=DEFAULT, g=3, foo=DEFAULT)
1408 foo_name, f=DEFAULT, g=3, foo=DEFAULT