Collen-Roller / flydenity

Aircraft Registration Prefix Dataset
MIT License
4 stars 3 forks source link

Test case "test_suffix_pattern" #8

Open Meisterschueler opened 3 years ago

Meisterschueler commented 3 years ago

Every suffix must match with r'([A-Z0-9]+)(-[A-Z0-9]+)?'.

dataset '{'type': 'country', 'nation': 'Macedonia', 'iso2': 'MK', 'iso3': 'MKD', 'description': 'ultralights', 'priority': '1', 'callsigns': ['Z3'], 'suffixes': ['UA-001-UA-999'], 'regex': re.compile('^(Z3)(-{0,1}(MANUAL)){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(Z3)(\-(MANUAL))$')}' has a bad suffix pattern: 'UA-001-UA-999' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'general', 'priority': '0', 'callsigns': ['ZK', 'ZL', 'ZM'], 'suffixes': [''], 'regex': re.compile('^(ZK|ZL|ZM)(-{0,1}([A-Z0-9]{3}|[A-Z0-9]{1,4})){0,1}$'), 'icao24bit_from': 'C80000', 'icao24bit_to': 'C87FFF', 'icao24bit_prefixes': ['C80', 'C81', 'C82', 'C83', 'C84', 'C85', 'C86', 'C87'], 'strict_regex': re.compile('^(ZK|ZL|ZM)(\-([A-Z0-9]{3}|[A-Z0-9]{1,4}))$')}' has a bad suffix pattern: '' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'historical', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['A', 'B', 'G', 'HA'], 'regex': re.compile('^(ZK)(-{0,1}(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9]))$')}' has a bad suffix pattern: 'A' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'historical', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['A', 'B', 'G', 'HA'], 'regex': re.compile('^(ZK)(-{0,1}(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9]))$')}' has a bad suffix pattern: 'B' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'historical', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['A', 'B', 'G', 'HA'], 'regex': re.compile('^(ZK)(-{0,1}(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9]))$')}' has a bad suffix pattern: 'G' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'historical', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['A', 'B', 'G', 'HA'], 'regex': re.compile('^(ZK)(-{0,1}(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(A|[A-Z0-9]|[A-Z0-9]|B|[A-Z0-9]|[A-Z0-9]|G|[A-Z0-9]|[A-Z0-9]|HA[A-Z0-9]))$')}' has a bad suffix pattern: 'HA' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'balloons', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['FA', 'FB'], 'regex': re.compile('^(ZK)(-{0,1}(F|A|[A-Z0-9]|FB[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(F|A|[A-Z0-9]|FB[A-Z0-9]))$')}' has a bad suffix pattern: 'FA' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'balloons', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['FA', 'FB'], 'regex': re.compile('^(ZK)(-{0,1}(F|A|[A-Z0-9]|FB[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(F|A|[A-Z0-9]|FB[A-Z0-9]))$')}' has a bad suffix pattern: 'FB*' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'gliders', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['G'], 'regex': re.compile('^(ZK)(-{0,1}(G[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(G[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'G' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'helicopters', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['H', 'I'], 'regex': re.compile('^(ZK)(-{0,1}(H|[A-Z0-9]|[A-Z0-9]|I[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(H|[A-Z0-9]|[A-Z0-9]|I[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'H' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'helicopters', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['H', 'I'], 'regex': re.compile('^(ZK)(-{0,1}(H|[A-Z0-9]|[A-Z0-9]|I[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(H|[A-Z0-9]|[A-Z0-9]|I[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'I' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'gyrocopters', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['R*', 'RB', 'RC', 'RD'], 'regex': re.compile('^(ZK)(-{0,1}(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9]))$')}' has a bad suffix pattern: 'R' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'gyrocopters', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['R', 'RB', 'RC', 'RD'], 'regex': re.compile('^(ZK)(-{0,1}(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9]))$')}' has a bad suffix pattern: 'RB' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'gyrocopters', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['R', 'RB', 'RC', 'RD'], 'regex': re.compile('^(ZK)(-{0,1}(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9]))$')}' has a bad suffix pattern: 'RC' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'gyrocopters', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['R', 'RB', 'RC', 'RD'], 'regex': re.compile('^(ZK)(-{0,1}(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(R|[A-Z0-9]|[A-Z0-9]|R|B|[A-Z0-9]|R|C|[A-Z0-9]|RD[A-Z0-9]))$')}' has a bad suffix pattern: 'RD' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'ICAO prohibited', 'priority': '1', 'callsigns': ['ZK'], 'suffixes': ['Q'], 'regex': re.compile('^(ZK)(-{0,1}(Q[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(ZK)(\-(Q[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'Q' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'general', 'priority': '0', 'callsigns': ['ZK', 'ZL', 'ZM'], 'suffixes': ['**'], 'regex': re.compile('^(ZK|ZL|ZM)(-{0,1}([A-Z0-9]{3}|[A-Z0-9]{1,4})){0,1}$'), 'icao24bit_from': 'C80000', 'icao24bit_to': 'C87FFF', 'icao24bit_prefixes': ['C80', 'C81', 'C82', 'C83', 'C84', 'C85', 'C86', 'C87'], 'strict_regex': re.compile('^(ZK|ZL|ZM)(\-([A-Z0-9]{3}|[A-Z0-9]{1,4}))$')}' has a bad suffix pattern: '' dataset '{'type': 'country', 'nation': 'New Zealand', 'iso2': 'NZ', 'iso3': 'NZL', 'description': 'general', 'priority': '0', 'callsigns': ['ZK', 'ZL', 'ZM'], 'suffixes': [''], 'regex': re.compile('^(ZK|ZL|ZM)(-{0,1}([A-Z0-9]{3}|[A-Z0-9]{1,4})){0,1}$'), 'icao24bit_from': 'C80000', 'icao24bit_to': 'C87FFF', 'icao24bit_prefixes': ['C80', 'C81', 'C82', 'C83', 'C84', 'C85', 'C86', 'C87'], 'strict_regex': re.compile('^(ZK|ZL|ZM)(\-([A-Z0-9]{3}|[A-Z0-9]{1,4}))$')}' has a bad suffix pattern: '' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'police', 'priority': '1', 'callsigns': ['SN'], 'suffixes': ['XP', 'VP'], 'regex': re.compile('^(SN)(-{0,1}([A-Z0-9]|[A-Z0-9]|X|P|VP[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SN)(\-([A-Z0-9]|[A-Z0-9]|X|P|VP[A-Z0-9]))$')}' has a bad suffix pattern: 'XP' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'police', 'priority': '1', 'callsigns': ['SN'], 'suffixes': ['XP', 'VP'], 'regex': re.compile('^(SN)(-{0,1}([A-Z0-9]|[A-Z0-9]|X|P|VP[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SN)(\-([A-Z0-9]|[A-Z0-9]|X|P|VP[A-Z0-9]))$')}' has a bad suffix pattern: 'VP*' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'border guard', 'priority': '1', 'callsigns': ['SN'], 'suffixes': ['*YG', 'VS'], 'regex': re.compile('^(SN)(-{0,1}([A-Z0-9]|[A-Z0-9]|Y|G|VS[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SN)(\-([A-Z0-9]|[A-Z0-9]|Y|G|VS[A-Z0-9]))$')}' has a bad suffix pattern: 'YG' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'border guard', 'priority': '1', 'callsigns': ['SN'], 'suffixes': ['YG', 'VS'], 'regex': re.compile('^(SN)(-{0,1}([A-Z0-9]|[A-Z0-9]|Y|G|VS[A-Z0-9])){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SN)(\-([A-Z0-9]|[A-Z0-9]|Y|G|VS[A-Z0-9]))$')}' has a bad suffix pattern: 'VS' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'motor-gliders', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['0**'], 'regex': re.compile('^(SP)(-{0,1}(0[A-Z0-9]{3})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-(0[A-Z0-9]{3}))$')}' has a bad suffix pattern: '0' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'gliders', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['1-3', '8'], 'regex': re.compile('^(SP)(-{0,1}([1-3][A-Z0-9]{3}|8[A-Z0-9]{3})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-([1-3][A-Z0-9]{3}|8[A-Z0-9]{3}))$')}' has a bad suffix pattern: '1-3' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'gliders', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['1-3', '8'], 'regex': re.compile('^(SP)(-{0,1}([1-3][A-Z0-9]{3}|8[A-Z0-9]{3})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-([1-3][A-Z0-9]{3}|8[A-Z0-9]{3}))$')}' has a bad suffix pattern: '8' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'balloons', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['B'], 'regex': re.compile('^(SP)(-{0,1}(B[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-(B[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'B' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'Polish airlines', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['L'], 'regex': re.compile('^(SP)(-{0,1}(L[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-(L[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'L' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'ultralights', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['S'], 'regex': re.compile('^(SP)(-{0,1}(S[A-Z0-9]{3})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-(S[A-Z0-9]{3}))$')}' has a bad suffix pattern: 'S' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'autogyros', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['X'], 'regex': re.compile('^(SP)(-{0,1}(X[A-Z0-9]{3})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-(X[A-Z0-9]{3}))$')}' has a bad suffix pattern: 'X*' dataset '{'type': 'country', 'nation': 'Poland', 'iso2': 'PL', 'iso3': 'POL', 'description': 'experimental', 'priority': '1', 'callsigns': ['SP'], 'suffixes': ['Y'], 'regex': re.compile('^(SP)(-{0,1}(Y[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(SP)(\-(Y[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'Y' dataset '{'type': 'country', 'nation': 'Portugal', 'iso2': 'PT', 'iso3': 'PRT', 'description': 'airlines', 'priority': '1', 'callsigns': ['CS'], 'suffixes': ['T'], 'regex': re.compile('^(CS)(-{0,1}(T[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(CS)(\-(T[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'T' dataset '{'type': 'country', 'nation': 'Portugal', 'iso2': 'PT', 'iso3': 'PRT', 'description': 'helicopters', 'priority': '1', 'callsigns': ['CS'], 'suffixes': ['H'], 'regex': re.compile('^(CS)(-{0,1}(H[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(CS)(\-(H[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'H' dataset '{'type': 'country', 'nation': 'Portugal', 'iso2': 'PT', 'iso3': 'PRT', 'description': 'experimental', 'priority': '1', 'callsigns': ['CS'], 'suffixes': ['X'], 'regex': re.compile('^(CS)(-{0,1}(X[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(CS)(\-(X[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'X' dataset '{'type': 'country', 'nation': 'Portugal', 'iso2': 'PT', 'iso3': 'PRT', 'description': 'ultralights', 'priority': '1', 'callsigns': ['CS'], 'suffixes': ['U'], 'regex': re.compile('^(CS)(-{0,1}(U[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(CS)(\-(U[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'U' dataset '{'type': 'country', 'nation': 'Portugal', 'iso2': 'PT', 'iso3': 'PRT', 'description': 'gliders', 'priority': '1', 'callsigns': ['CS'], 'suffixes': ['P'], 'regex': re.compile('^(CS)(-{0,1}(P[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(CS)(\-(P[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'P' dataset '{'type': 'country', 'nation': 'Portugal', 'iso2': 'PT', 'iso3': 'PRT', 'description': 'balloons', 'priority': '1', 'callsigns': ['CS'], 'suffixes': ['B'], 'regex': re.compile('^(CS)(-{0,1}(B[A-Z0-9]{2})){0,1}$'), 'icao24bit_from': '', 'icao24bit_to': '', 'icao24bit_prefixes': [], 'strict_regex': re.compile('^(CS)(\-(B[A-Z0-9]{2}))$')}' has a bad suffix pattern: 'B**'