def test_gallery_list(self):
    response = self.client.get('/ptests/gallerylist/')
    self.assertEqual(list(response.context['object_list']), [self.gallery1])
def test_gallery_list(self):
    response = self.client.get('/ptests/gallerylist/')
    self.assertEqual(list(response.context['object_list']), [self.gallery1])