File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
core/src/test/python/wlsdeplloy/json Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ """
2
+ Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3
+ The Universal Permissive License (UPL), Version 1.0
4
+ """
5
+ import unittest
6
+
7
+ from java .io import ByteArrayInputStream
8
+ from oracle .weblogic .deploy .json import JsonStreamTranslator
9
+
10
+
11
+ class JsonTranslatorTest (unittest .TestCase ):
12
+
13
+ def disabled_testEscapeBackslash (self ):
14
+ # JSON "xy\\.z" should become String "xy\.z"
15
+ text = "{ \" abc\" : \" xy\\ \\ .z\" }"
16
+ stream = ByteArrayInputStream (text .encode ('utf-8' ))
17
+ json_translator = JsonStreamTranslator ("String" , stream )
18
+ result = json_translator .parse ()
19
+ abc = result ['abc' ]
20
+ self .assertEquals ("xy\\ .z" , abc , "Should be single slash" )
You can’t perform that action at this time.
0 commit comments