def _run_parse_and_check( item: str, info: List[StringTable], params: Optional[VsResult] = None, ): if params is None: params = {} result = list( check_wlc_clients( item=item, params=params, section=parse_cisco_wlc_clients(info), )) return result
def test_parse_cisco_wlc_clients(): result = parse_cisco_wlc_clients(INFO) assert result == WlcClientsSection( total_clients=186, clients_per_ssid={ "FreePublicWifi": ClientsPerInterface(per_interface=dict( guest1=0, guest2=114, guest3=68, )), "AnotherWifiSSID": ClientsPerInterface(per_interface=dict(interface_name=0)), "corp_internal_001": ClientsPerInterface(per_interface=dict(corp_intern_001=1)), "corp_internal_003": ClientsPerInterface(per_interface=dict(corp_intern_003=3)), }, )