<s> from . import TestCase <EOL> import JsonStats . Utils <EOL> class Utils ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . _expected_sorted_dict = '<STR_LIT>' <EOL> self . _unsorted_dict = { <EOL> '<STR_LIT:foo>' : <NUM_LIT:1> , <EOL> '<STR_LIT:bar>' : <NUM_LIT:2> , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> def test_dump_sorted_json_string ( self ) : <EOL> """<STR_LIT>""" <EOL> sorted_str = JsonStats . Utils . dump_sorted_json_string ( self . _unsorted_dict ) <EOL> self . assertEqual ( self . _expected_sorted_dict , sorted_str , <EOL> msg = "<STR_LIT>" % <EOL> ( self . _expected_sorted_dict , sorted_str ) ) </s>
