

def test_properties(self):
    '\n        See #764\n        '
    from django.db import models

    class Foob(models.Model):

        def _get_days(self):
            return 1

        def _set_days(self, val):
            assert (1 == val)
        days = property(_get_days, _set_days)
    alias = adapter.DjangoClassAlias(Foob, 'Bar')
    x = Foob()
    self.assertEqual(x.days, 1)
    self.assertEqual(alias.getEncodableAttributes(alias), {
        'days': 1,
        'id': None,
    })
    alias.applyAttributes(x, {
        'id': None,
    })

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_django.py ClassAliasTestCase.test_properties/VarMisuse@108/144 `x`->`alias`