MCPcopy Create free account
hub / github.com/adobe/Marinus / _check_valid_status

Method _check_valid_status

python3_cron_scripts/libs3/ZoneManager.py:61–71  ·  view source on GitHub ↗
(self, status)

Source from the content-addressed store, hash-verified

59 self.zone_collection = mongo_connector.get_zone_connection()
60
61 def _check_valid_status(self, status):
62 if (
63 status != ZoneManager.EXPIRED
64 and status != ZoneManager.FALSE_POSITIVE
65 and status != ZoneManager.CONFIRMED
66 and status != ZoneManager.UNCONFIRMED
67 ):
68 self._logger.error("ERROR: Bad status value")
69 return False
70
71 return True
72
73 @staticmethod
74 def get_distinct_zones(mongo_connector, includeAll=False):

Callers 1

get_zones_by_statusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected