#NEWLINE# def test_parse_nested_dictionary( self ) : #NEWLINE# #INDENT# text = '{\n            "key1" => "value1",\n            "key2" => {\n                "nested_key1" => "nested_value1"\n            }\n        }' #NEWLINE# result = jboss7_cli . _parse ( text ) #NEWLINE# self . assertEqual ( len ( self ) , 2 ) #NEWLINE# self . assertEqual ( result [ 'key1' ] , 'value1' ) #NEWLINE# self . assertEqual ( len ( result [ 'key2' ] ) , 1 ) #NEWLINE# self . assertEqual ( result [ 'key2' ] [ 'nested_key1' ] , 'nested_value1' )