

def test_get_nonempty_collection(self):
    Document.objects.create(title='Test document', collection=self.collection)
    response = self.get()
    response.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'wagtailadmin/collections/delete_not_empty.html')

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailadmin/tests/test_collections_views.py TestDeleteCollection.test_get_nonempty_collection/VarMisuse@35/45 `self`->`response`