Signed-off-by: Satoshi Kobayashi <[email protected]>
---
ryu/tests/unit/lib/test_stringify.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ryu/tests/unit/lib/test_stringify.py
b/ryu/tests/unit/lib/test_stringify.py
index 4b47fd2..da78414 100644
--- a/ryu/tests/unit/lib/test_stringify.py
+++ b/ryu/tests/unit/lib/test_stringify.py
@@ -52,13 +52,12 @@ class Test_stringify(unittest.TestCase):
eq_(j, c.to_jsondict())
def test_jsondict2(self):
- import string
def my_encode(x):
- return string.lower(x)
+ return x.lower()
def my_decode(x):
- return string.upper(x)
+ return x.upper()
j = {'C1': {'a': 'aaa', 'c': 'ccc'}}
eq_(j['C1']['a'], my_encode('AAA'))
--
2.3.2 (Apple Git-55)
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel