Lines Matching defs:something
42 something = sentinel.Something
148 global something
149 original = something
150 @patch('%s.something' % __name__, sentinel.Something2)
155 something = sentinel.replacement_value
157 self.assertEqual(something, sentinel.replacement_value)
159 something = original
163 @patch('%s.something' % __name__, sentinel.Something2)
165 self.assertEqual(PTModule.something, sentinel.Something2,
169 self.assertEqual(PTModule.something, sentinel.Something,
172 @patch('%s.something' % __name__, sentinel.Something2)
175 self.assertEqual(PTModule.something, sentinel.Something2,
180 self.assertEqual(PTModule.something, sentinel.Something,
188 self.assertEqual(PTModule.something, sentinel.Something,
219 something = sentinel.Original
222 @patch.object(Test, 'something')
224 self.assertEqual(mock, Test.something,
231 @patch.object(Test, 'something')
240 self.assertEqual(mock2, Test.something,
477 self.assertEqual(PTModule.something, mock_something,
480 self.assertEqual(PTModule.something, sentinel.Something,
482 Foo = patch('%s.something' % __name__)(Foo)
490 self.assertEqual(PTModule.something, sentinel.Something,
511 foo = {'initial': object(), 'other': 'something'}
518 foo['other'] = 'something else'
546 foo['other'] = 'something'
554 foo['other'] = 'something else'
571 foo = {'initial': object(), 'other': 'something'}
578 foo['other'] = 'something else'
604 foo['other'] = 'something'
612 foo['other'] = 'something else'
719 original = something
720 patcher = patch('%s.something' % __name__)
721 self.assertIs(something, original)
725 self.assertIs(something, mock)
728 self.assertIs(something, original)
747 original = something
748 patcher = patch.object(PTModule, 'something', 'foo')
749 self.assertIs(something, original)
753 self.assertIs(something, replaced)
756 self.assertIs(something, original)
1789 'doesnotexist', 'something')
1819 patch('os.unlink', something).start()
1883 patch('os.unlink', something).start()