#NEWLINE# def test_load_kwargs_hook_does_not_lose_sort_order( self ) : #NEWLINE# #INDENT# mod = OrderedJsonModel . objects . create ( json = self . ordered_dict ) #NEWLINE# self . assertEqual ( list ( mod . json . keys ( ) ) , self . expected_key_order ) #NEWLINE# mod_from_db = OrderedJsonModel . objects . get ( id = mod . id ) #NEWLINE# self . assertEqual ( list ( mod_from_db . json . keys ( ) ) , self . expected_key_order )