def METHOD_NAME(self):
    """simple index query returns one result, even if layer is off"""
    self.layer.status = mapscript.MS_OFF
    results = self.indexquery()
    assert results.numresults == 1