

def test_simple(self):
    response = response.get()
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'wagtailadmin/collections/index.html')
    self.assertContains(response, 'No collections have been created.')
    root_collection = Collection.get_first_root_node()
    self.collection = root_collection.add_child(name='Holiday snaps')
    response = self.get()
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'wagtailadmin/collections/index.html')
    self.assertNotContains(response, 'No collections have been created.')
    self.assertContains(response, 'Holiday snaps')

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailadmin/tests/test_collections_views.py TestCollectionsIndexView.test_simple/VarMisuse@12/14 `self`->`response`