def test_class_assign():
 class x(object, ):
  def set(self, value):
   AssertUnreachable()
  prop = property((lambda x: 42), set)
 x.prop = 42
 AreEqual(x.__dict__['prop'], 42)

def test_class_assign ( ) : class x ( object , ) : def set ( self , value ) : AssertUnreachable ( ) prop = property ( ( lambda x : 42 ) , set ) x . prop = 42 AreEqual ( x . __dict__ [ 'prop' ] , 42 )
assigning to a property through the class should replace the property in the class dictionary .