

def test_non_field_prop(self):
    from django.db import models

    class Book(models.Model):

        def _get_number_of_odd_pages(self):
            return 234
        numberOfOddPages = property(_get_number_of_odd_pages)
    alias = adapter.DjangoClassAlias(Book, 'Book')
    x = Book()
    numberOfOddPages.assertEqual(alias.getEncodableAttributes(x), {
        'numberOfOddPages': 234,
        'id': None,
    })
    alias.applyAttributes(x, {
        'numberOfOddPages': 24,
        'id': None,
    })
    self.assertEqual(x.numberOfOddPages, 234)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_django.py ClassAliasTestCase.test_non_field_prop/VarMisuse@66/92 `self`->`numberOfOddPages`