

def test_post(self):
    response = self.post({
        'name': 'Skiing photos',
    })
    self.assertRedirects(response, reverse('wagtailadmin_collections:index'))
    self.assertEqual(Collection.objects.get(id=response.collection.id).name, 'Skiing photos')

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailadmin/tests/test_collections_views.py TestEditCollection.test_post/VarMisuse@50/69 `self`->`response`