

def test_static_relation(self):
    '\n        @see: #693\n        '
    from pyamf import util
    pyamf.register_class(models.StaticRelation)
    alias = adapter.DjangoClassAlias(models.StaticRelation, static_attrs=('gak',))
    alias.compile()
    self.assertTrue(('gak' in alias.relations))
    self.assertTrue(('gak' in alias.decodable_properties))
    self.assertTrue(('gak' in alias.static_attrs))
    x = models.StaticRelation()
    x.getDecodableAttributes(x, {
        'id': None,
        'gak': 'foo',
    })

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_django.py ForeignKeyTestCase.test_static_relation/VarMisuse@97/141 `alias`->`x`