code: def assert_instance_deleted(self, model_class, **kwargs):
          
          return _InstanceContext(
              self.assert_instance_exists,
              self.assert_instance_does_not_exist,
              model_class,
              **kwargs
          )
docs: Checks if the model instance was deleted from the database.
  
          For example::
  
          >>> with self.assert_instance_deleted(Article, slug='lorem-ipsum'):
          ...     Article.objects.get(slug='lorem-ipsum').delete()