

def test_concrete(self):
    alias = adapter.DjangoClassAlias(models.Place)
    x = models.Place()
    attrs = alias.getEncodableAttributes(x)
    self.assertEqual(attrs, {
        'id': None,
        'name': '',
        'address': '',
    })
    alias = adapter.DjangoClassAlias(models.Restaurant)
    x = models.Restaurant()
    attrs = alias.getEncodableAttributes(x)
    self.assertEqual(attrs, {
        'id': None,
        'name': '',
        'address': '',
        'serves_hot_dogs': False,
        'serves_pizza': False,
    })

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_django.py ModelInheritanceTestCase.test_concrete/original