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")
146 def spam(self): member in PropertySubclassTests.test_slots_docstring_copy_exception.Foo
159 def spam(self): member in PropertySubclassTests.test_docstring_copy.Foo
163 Foo.spam.__doc__,
172 def spam(self): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
175 @spam.setter
176 def spam(self, value): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
180 self.assertEqual(foo.spam, 1)
181 foo.spam = 2
182 self.assertEqual(foo.spam, 2)
184 Foo.spam.__doc__,
187 @Foo.spam.setter
188 def spam(self, value): member in PropertySubclassTests.test_property_setter_copies_getter_docstring.FooSub
192 self.assertEqual(foosub.spam, 1)
193 foosub.spam = 7
194 self.assertEqual(foosub.spam, 'eggs')
196 FooSub.spam.__doc__,
205 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
208 @spam.getter
209 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
212 self.assertEqual(Foo.spam.__doc__, "a new docstring")
215 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.FooBase
219 @FooBase.spam.getter
220 def spam(self): member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo2
223 self.assertEqual(Foo.spam.__doc__, "a new docstring")