def assertObjectExist(self, qs, **filter):
        try:
            return qs.get(**filter)
        except ObjectDoesNotExist:
            pass
        raise self.failureException("ObjectDoesNotExist raised for filter %s" % filter)
dataset/ETHPy150Open divio/django-cms/cms/test_utils/testcases.py/BaseCMSTestCase.assertObjectExist/original