

def test_objects_all(self):
    encoder = pyamf.get_encoder(pyamf.AMF0)
    self.writeElement(models.SimplestModel.objects.all())
    self.assertEqual(encoder.stream.getvalue(), '\n\x00\x00\x00\x00')
    encoder = pyamf.get_encoder(pyamf.AMF3)
    encoder.writeElement(models.SimplestModel.objects.all())
    self.assertEqual(encoder.stream.getvalue(), '\t\x01\x01')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/tests/adapters/test_django.py TypeMapTestCase.test_objects_all/VarMisuse@21/29 `encoder`->`self`