Definition at line 191 of file menu_config_tests.py.
◆ result
◆ __init__()
| menu_config_tests.RestrictedCTPIDs.__init__ |
( |
| self | ) |
|
Definition at line 192 of file menu_config_tests.py.
192 def __init__(self):
193 super(RestrictedCTPIDs, self).__init__(
194 description="Less than 512 CTP items, and no CTP id greater than 512")
195
◆ run()
| menu_config_tests.RestrictedCTPIDs.run |
( |
| self, |
|
|
| config ) |
Reimplemented from menu_config_tests.MenuVerification.
Definition at line 196 of file menu_config_tests.py.
196 def run(self, config):
197 ctp_ids = {name: item["ctpid"] for
198 name, item in config["items"].items()}
199 if len(ctp_ids) > 512:
200 self.failures.append(
201 "More than 512 CTP items defined")
202 over_max_ids = [name for name, ctp_id in ctp_ids.items()
203 if ctp_id > 512]
204 self.failures.extend(over_max_ids)
205
206
◆ description
| menu_config_tests.MenuVerification.description = description |
|
inherited |
◆ failures
| list menu_config_tests.MenuVerification.failures = [] |
|
inherited |
The documentation for this class was generated from the following file: