File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import unittest
2+ import json
23
34# Runtime import to avoid syntax errors in samples on Python < 3.5 and reach top-dir
45import os
56_TOP_DIR = os .path .abspath (
67 os .path .sep .join ((
78 os .path .dirname (__file__ ),
8- ' ../' ,
9+ " ../" ,
910 )),
1011)
1112_SAMPLES_DIR = os .path .abspath (
1213 os .path .sep .join ((
1314 os .path .dirname (__file__ ),
14- ' ../samples/' ,
15+ " ../samples/" ,
1516 )),
1617)
1718import sys
@@ -27,7 +28,7 @@ def test(self):
2728 client = web .app .test_client ()
2829
2930 with web .app .app_context ():
30- response = client .get ('/' )
31+ response = client .get ("/" )
3132
3233 self .assertEqual (response .status_code , 200 )
33- self .assertEqual (response .data , b' {"result":"Ok"}\n ' )
34+ self .assertEqual (json . loads ( response .data ), {"result" : "Ok" })
You can’t perform that action at this time.
0 commit comments