

def test_get_attrs(self):
    m = Movie.query.filter_by(title='Blade Runner').one()
    g = m.genres[0]
    d = m.director
    attrs = self.movie_alias.getEncodableAttributes(m)
    self.assertEqual(attrs, {
        'genres': [g],
        'description': None,
        'title': 'Blade Runner',
        'director': d,
        'year': 1982,
        'sa_key': ['Blade Runner', 1982],
        'sa_lazy': [],
    })

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_elixir.py ClassAliasTestCase.test_get_attrs/original