Commit ad6b171e authored by Mikaël Salson's avatar Mikaël Salson

tests/default.py: traverse the json structure to check that custom fuse succeeded.

We've now transformed the JSON string in a real Python structure. So we traverse it (which is more reliable)

Fixes bf65fbdb
parent 5480d223
......@@ -72,7 +72,7 @@ class DefaultController(unittest.TestCase):
if resp.has_key('success') and resp['success'] == 'false':
self.assertTrue(defs.PORT_FUSE_SERVER is None, 'get_custom_data returns error without fuse server')
else:
self.assertNotEqual(resp.find('"segmented":[742377,742377]'), -1, "get_custom_data doesn't return a valid json")
self.assertEqual(resp['reads']['segmented'][0], resp['reads']['segmented'][1], "get_custom_data doesn't return a valid json")
def testGetAnalysis(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment