<s> from nose . tools import eq_ <EOL> from . . util import diff_dicts <EOL> def test_diff_dicts ( ) : <EOL> diff = diff_dicts ( None , { '<STR_LIT:a>' : <NUM_LIT:1> , '<STR_LIT:b>' : <NUM_LIT:2> } ) <EOL> eq_ ( diff . added , { '<STR_LIT:a>' , '<STR_LIT:b>' } ) <EOL> eq_ ( diff . removed , set ( ) ) <EOL> eq_ ( diff . intersection , set ( ) ) <EOL> eq_ ( diff . changed , set ( ) ) <EOL> eq_ ( diff . unchanged , set ( ) ) <EOL> diff = diff_dicts ( { '<STR_LIT:a>' : <NUM_LIT:1> , '<STR_LIT:b>' : <NUM_LIT:2> , '<STR_LIT:c>' : <NUM_LIT:3> } , { '<STR_LIT:a>' : <NUM_LIT:1> , '<STR_LIT:b>' : <NUM_LIT:3> , '<STR_LIT:d>' : <NUM_LIT:10> } ) <EOL> eq_ ( diff . added , { '<STR_LIT:d>' } ) <EOL> eq_ ( diff . removed , { '<STR_LIT:c>' } ) <EOL> eq_ ( diff . intersection , { '<STR_LIT:a>' , '<STR_LIT:b>' } ) <EOL> eq_ ( diff . changed , { '<STR_LIT:b>' } ) <EOL> eq_ ( diff . unchanged , { '<STR_LIT:a>' } ) </s>
