def test_my_images(self):
        image1 = get_in_memory_image_instance(self.user)
        image2 = get_in_memory_image_instance(self.user)
        response = self.client.get(reverse('my_images'))
        content = json.loads(response.content)
        expected = [
            {u'thumb': image1.get_thumbnail.url,
             u'image': image1.get_absolute_url(),
             u'id': image1.pk},
            {u'thumb': image2.get_thumbnail.url,
             u'image': image2.get_absolute_url(),
             u'id': image2.pk}
        ]
        self.assertEqual(len(content), len(expected))
        for image in content:
            self.assertIn(image, expected)
Track the number of times the action field has been rendered on the page,
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_views.py/ImageViewsTest.test_my_images--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/admin/templatetags/admin_list.py/admin_actions