id%TddlmZddlmZddlmZmZmZdZGdde Z dS)) OrderedDict)dedent)MappingComparison ShouldRaisecomparectt|t|ddS)N expected)rreprrrstrip)objr s ^/opt/cloudlinux/venv/lib/python3.11/site-packages/testfixtures/tests/test_mappingcomparison.py check_reprrs7 DIIx 0 0 7 7 = =>>>>>>ceZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdS)TestMappingComparisoncLtddid}t|ddS)NabzB'a': 1, 'b': 2rrselfms r test_reprzTestMappingComparison.test_repr s/ sAh! , , ,1Z[[[[[rcHtdd}t|ddS)NrrrTorderedzA'b': 3, 'a': 1rrs rtest_repr_orderedz'TestMappingComparison.test_repr_ordereds, 2D A A A1YZZZZZrcvtddd}tt|ddddS)Nr 1: 'a', 2: 'bbr rrr rs rtest_repr_longz$TestMappingComparison.test_repr_longsQ #&11 2 2Q _ a a a a a arcHtddi}t|ddS)Nrrz:'a': 1rrs rtest_repr_after_equalz+TestMappingComparison.test_repr_after_equals* sAh ' '1RSSSSSrc(tddi}dS)Nrrrrs rtest_equal_mappingz(TestMappingComparison.test_equal_mappings sAh ' 'rc&tdd}dS)Nr#rrr/rs rtest_equal_sequencez)TestMappingComparison.test_equal_sequence#s h 1 1rc&td}dS)Nr)rr/rs rtest_equal_itemsz&TestMappingComparison.test_equal_items's  " " "rc.tdddd}dS)Nrrrrr"rr/rs rtest_equal_bothz%TestMappingComparison.test_equal_both+s AA..! 4 4 4rc*tddd}dS)Nr"rTrrr%r/rs rtest_equal_items_orderedz.TestMappingComparison.test_equal_items_ordered/s Q 5 5 5rc.tdddd}dS)Nr"r)rrTr$r/rs r$test_equal_ordered_and_dict_suppliedz:TestMappingComparison.test_equal_ordered_and_dict_supplied3s AA.. = = =rc(tdd}dSNr#r!Tr$r/rs r)test_equal_ordered_dict_sequence_expectedz?TestMappingComparison.test_equal_ordered_dict_sequence_expected7s 2D A A ArcBttdd}dSr?)rrrs r-test_equal_ordered_dict_ordered_dict_expectedzCTestMappingComparison.test_equal_ordered_dict_ordered_dict_expected;s! k*>?? N N Nrc,tddid}dS)NrrTpartialr/rs rtest_equal_partialz(TestMappingComparison.test_equal_partial?s sAh 5 5 5rc*tddd}dS)Nr@T)r%rFr/rs rtest_equal_partial_orderedz0TestMappingComparison.test_equal_partial_orderedCs 2D$ O O Orcdtddi}tt|ddS)NrrzDbad typer r*rs rtest_unequal_wrong_typez-TestMappingComparison.test_unequal_wrong_typeGsE sAh ' 'Q_ a a a a a arcLtddd}t|ddS)Nrrr7z same: ['a', 'b'] in actual but not expected: 'c': 3 r rrs rtest_unequal_not_partialz.TestMappingComparison.test_unequal_not_partialMs? AA.. / /1       rcNtdddd}t|ddS)Nrrr")rrca same: ['a'] in expected but not actual: 'b': 2 in actual but not expected: 'd': 5 values differ: 'c': 3 (expected) != 4 (actual) r rrs rtest_unequal_keys_and_valuesz2TestMappingComparison.test_unequal_keys_and_valuesZsA AAA66 7 71       rcJtdd}t|ddS)Nr Tr$I wrong key order: same: [] expected: ['b', 'a'] actual: ['a', 'b'] r rrs rtest_unequal_orderz(TestMappingComparison.test_unequal_orderms= 2D A A A1 rcLtddd}t|ddS)N)))rxr"))ryrT)r% recursivea wrong key order: same: [] expected: [('b', 'x'), ('b', 'y')] actual: [('b', 'y'), ('b', 'x')] While comparing [0]: sequence not as expected: same: ('b',) expected: ('x',) actual: ('y',) While comparing [0][1]: 'x' (expected) != 'y' (actual) r rrs rtest_unequal_order_recursivez2TestMappingComparison.test_unequal_order_recursives@ @$Z^ _ _ _1       rcLtddd}t|ddS)Nr"rTr:rRr rrs rtest_unequal_order_wrongz.TestMappingComparison.test_unequal_order_wrongs> Q 5 5 51 rcPtdddd}t|ddS)Nrrr7TrEz same: ['a'] in expected but not actual: 'b': 2 r rrs r!test_unequal_partial_keys_missingz7TestMappingComparison.test_unequal_partial_keys_missingD AA.. = = =1       rcPtdddd}t|ddS)Nrrr7TrEa same: ['a'] values differ: 'b': 2 (expected) != 3 (actual) r rrs r!test_unequal_partial_values_wrongz7TestMappingComparison.test_unequal_partial_values_wrongr]rcLtddd}t|ddS)Nr TrFr%aG wrong key order: same: [] expected: ['b', 'a'] actual: ['a', 'b'] r rrs rtest_unequal_partial_orderedz2TestMappingComparison.test_unequal_partial_ordereds? 2D$ O O O1 rcLtddd}t|ddS)N)r!)rOrr#Traa~ ignored: ['d'] wrong key order: same: ['b'] expected: ['c', 'a'] actual: ['a', 'c'] r rrs r)test_unequal_partial_ordered_some_ignoredz?TestMappingComparison.test_unequal_partial_ordered_some_ignoreds@  same: ['a'] values differ: 'b': {'c': 2} (expected) != {'c': 3} (actual) While comparing ['b']: dict not as expected: values differ: 'c': 2 (expected) != 3 (actual) r rrs rtest_unequal_recursivez,TestMappingComparison.test_unequal_recursivesH AS!H55 F F F1 rcNtdddd}t|ddS)N)r#r2)rOr"T)r%rFrWaK ignored: ['d'] same: ['a', 'b'] in expected but not actual: 'c': 3 wrong key order: same: [] expected: ['a', 'b', 'c'] actual: ['b', 'a'] While comparing [0]: 'a' (expected) != 'b' (actual) r rrs rtest_everything_wrongz+TestMappingComparison.test_everything_wrongsM <&*DD J J J 1       rc&td}dS)NTrEr/rs rtest_partial_nothing_specifiedz4TestMappingComparison.test_partial_nothing_specified!s d + + +rcFtd}t|ddS)NTrEzCbad typerrs r)test_partial_nothing_specified_wrong_typez?TestMappingComparison.test_partial_nothing_specified_wrong_type%s) d + + +1[\\\\\rc8tddi}|ddik}dS)Nkvr/)rrresults rtest_boolean_returnz)TestMappingComparison.test_boolean_return*s$ sCj ) )sCjrN) __name__ __module__ __qualname__rr&r+r-r0r3r5r8r;r=rArCrGrIrKrMrPrSrXrZr\r_rbrdrfrhrjrlrqrrrr s\\\[[[aaa TTT %%%%%%%%%%%%666666%%%@@@aaa       &   $   >   $           $   *   $   <]]] (((((rrN) collectionsrtextwrapr testfixturesrrrrobjectrrurrrzs######@@@@@@@@@@???b(b(b(b(b(Fb(b(b(b(b(r