def _capabilities_equal_query(self, strict):
for i in range(<NUM_LIT:1>, <NUM_LIT:10>):<EOL><INDENT>r = self.create_shuffled_registry()<EOL>capabilities_by_ext = r.get_capabilities_by_ext(strict_type_matching=strict)<EOL>for ext in capabilities_by_ext.keys():<EOL><INDENT>for typ in capabilities_by_ext[ext].keys():<EOL><INDENT>print('<STR_LIT>' + ('<STR_LIT>' if strict else '<STR_LIT>') + '<STR_LIT>'<EOL>+ get_pretty_type_str(typ) + '<STR_LIT>' + ext)<EOL>matching, no_type_match_but_ext_match, no_ext_match_but_type_match, no_match= r.find_all_matching_parsers(strict, desired_type=typ, required_ext=ext)<EOL>matching_parsers = matching[<NUM_LIT:0>] + matching[<NUM_LIT:1>] + matching[<NUM_LIT:2>]<EOL>capa = []<EOL>if '<STR_LIT>' in capabilities_by_ext[ext][typ].keys():<EOL><INDENT>capa = capa + capabilities_by_ext[ext][typ]['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in capabilities_by_ext[ext][typ].keys():<EOL><INDENT>capa = capa + capabilities_by_ext[ext][typ]['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in capabilities_by_ext[ext][typ].keys():<EOL><INDENT>capa = capa + capabilities_by_ext[ext][typ]['<STR_LIT>']<EOL><DEDENT>self.assertEquals(capa, list(reversed(matching_parsers)))<EOL>capa_no_dup = list(OrderedDict.fromkeys(capa))<EOL>self.assertEquals(capa_no_dup, list(reversed(matching_parsers)))<EOL><DEDENT><DEDENT><DEDENT>
Tests that, for all parser registry queries that can be done,
* the order of the parsers returned by `find_all_matching_parsers` is correct for all categories. That is, it
is consistent with the one returned in `get_capabilities_by_ext`
* there are no duplicates
:param strict:
:return: