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')
232 def spam(self): member in PropertySubclassTests.test_slots_docstring_copy_exception.Foo
245 def spam(self): member in PropertySubclassTests.test_docstring_copy.Foo
249 Foo.spam.__doc__,
258 def spam(self): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
261 @spam.setter
262 def spam(self, value): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
266 self.assertEqual(foo.spam, 1)
267 foo.spam = 2
268 self.assertEqual(foo.spam, 2)
270 Foo.spam.__doc__,
273 @Foo.spam.setter
274 def spam(self, value): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.FooSub
278 self.assertEqual(foosub.spam, 1)
279 foosub.spam = 7
280 self.assertEqual(foosub.spam, 'eggs')
282 FooSub.spam.__doc__,
291 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
294 @spam.getter
295 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
298 self.assertEqual(Foo.spam.__doc__, "a new docstring")
301 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.FooBase
305 @FooBase.spam.getter
306 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo2
309 self.assertEqual(Foo.spam.__doc__, "a new docstring")