Lines Matching refs:spam
25 def spam(self): member in BaseClass
29 @spam.setter
30 def spam(self, value): member in BaseClass
33 @spam.deleter
34 def spam(self): member in BaseClass
39 @BaseClass.spam.getter
40 def spam(self): member in SubClass
44 @spam.setter
45 def spam(self, value): member in SubClass
48 @spam.deleter
49 def spam(self): member in SubClass
56 spam = property(_get_spam, doc="spam spam spam") variable in PropertyDocBase
59 @PropertyDocBase.spam.getter
60 def spam(self): member in PropertyDocSub
65 @BaseClass.spam.getter
66 def spam(self): member in PropertySubNewGetter
72 def spam(self): member in PropertyNewGetter
75 @spam.getter
76 def spam(self): member in PropertyNewGetter
84 self.assertEqual(base.spam, 5)
86 base.spam = 10
87 self.assertEqual(base.spam, 10)
92 base.spam = 20
93 self.assertEqual(base.spam, 20)
107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter")
113 self.assertEqual(base.__class__.spam.__doc__, "BaseClass.getter")
118 self.assertEqual(base.__class__.spam.__doc__, "spam spam spam")
119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam")
125 self.assertEqual(newgettersub.spam, 5)
126 self.assertEqual(newgettersub.__class__.spam.__doc__, "new docstring")
128 self.assertEqual(newgetter.spam, 8)
129 self.assertEqual(newgetter.__class__.spam.__doc__, "new docstring")
168 def spam(self): member in PropertyTests.test_property_decorator_doc_writable.PropertyWritableDoc
173 self.assertEqual(sub.__class__.spam.__doc__, 'Eggs')
174 sub.__class__.spam.__doc__ = 'Spam'
175 self.assertEqual(sub.__class__.spam.__doc__, 'Spam')
201 def spam(self): member in PropertySubclassTests.test_slots_docstring_copy_exception.Foo
214 def spam(self): member in PropertySubclassTests.test_docstring_copy.Foo
218 Foo.spam.__doc__,
227 def spam(self): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
230 @spam.setter
231 def spam(self, value): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
235 self.assertEqual(foo.spam, 1)
236 foo.spam = 2
237 self.assertEqual(foo.spam, 2)
239 Foo.spam.__doc__,
242 @Foo.spam.setter
243 def spam(self, value): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.FooSub
247 self.assertEqual(foosub.spam, 1)
248 foosub.spam = 7
249 self.assertEqual(foosub.spam, 'eggs')
251 FooSub.spam.__doc__,
260 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
263 @spam.getter
264 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
267 self.assertEqual(Foo.spam.__doc__, "a new docstring")
270 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.FooBase
274 @FooBase.spam.getter
275 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo2
278 self.assertEqual(Foo.spam.__doc__, "a new docstring")