Lines Matching refs:Something

41 something  = sentinel.Something
96 class Something(object): class
99 @patch.object(Something, 'attribute', sentinel.Patched)
101 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched")
104 self.assertEqual(Something.attribute, sentinel.Original,
109 class Something(object): class
112 @patch.object(Something, 'attribute', None)
114 self.assertIsNone(Something.attribute, "unpatched")
117 self.assertEqual(Something.attribute, sentinel.Original,
122 class Something(object): class
126 @patch.object(Something, 'attribute', sentinel.Patched)
127 @patch.object(Something, 'next_attribute', sentinel.Patched2)
129 self.assertEqual(Something.attribute, sentinel.Patched,
131 self.assertEqual(Something.next_attribute, sentinel.Patched2,
135 self.assertEqual(Something.attribute, sentinel.Original,
137 self.assertEqual(Something.next_attribute, sentinel.Original2,
163 self.assertEqual(PTModule.something, sentinel.Something,
174 self.assertEqual(PTModule.something, sentinel.Something,
182 self.assertEqual(PTModule.something, sentinel.Something,
453 class Something(object): class
458 self.assertEqual(Something.attribute, sentinel.Patched,
461 self.assertEqual(Something.attribute, sentinel.Original,
464 Foo = patch.object(Something, 'attribute', sentinel.Patched)(Foo)
470 self.assertEqual(Something.attribute, sentinel.Original,
475 class Something(object): class
483 self.assertEqual(PTModule.something, sentinel.Something,
491 self.assertEqual(Something.attribute, sentinel.Original,
493 self.assertEqual(PTModule.something, sentinel.Something,
498 class Something(object): class
502 @patch.object(Something, 'attribute', sentinel.Patched)
503 @patch.object(Something, 'attribute', sentinel.Patched)
505 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched")
509 self.assertEqual(Something.attribute, sentinel.Original,
691 class Something(object): class
697 self.assertIs(cls, Something)
707 self.assertIs(cls, Something)
715 self.assertEqual(Something.static('f00'), 'f00')
716 Something.klass()
717 self.assertEqual(Something.static_dict('f00'), 'f00')
718 Something.klass_dict()
720 something = Something()
840 class Something(object): class
845 for thing in Something, SomethingElse, Something(), SomethingElse:
858 class Something(object): class
863 for thing in Something, SomethingElse, Something(), SomethingElse:
864 proxy = _get_proxy(Something, get_only=False)