def assertCanCreateAt(self, parent_model, child_model, msg=None):
        if not self._testCanCreateAt(parent_model, child_model):
            msg = self._formatMessage(msg, "Can not create a %s.%s under a %s.%s" % (
                child_model._meta.app_label, child_model._meta.model_name,
                parent_model._meta.app_label, parent_model._meta.model_name))
            raise self.failureException(msg)
Assert a particular child Page type can be created under a parent
dataset/ETHPy150Open torchbox/wagtail/wagtail/tests/utils.py/WagtailPageTests.assertCanCreateAt