##// END OF EJS Templates
tests: fixed problem with non-ascii errors
marcink -
r4341:3d76bd1b default
parent child
Show More
@@ -49,7 +49,8 def assert_call_ok(id_, given):
49 def assert_ok(id_, expected, given):
49 def assert_ok(id_, expected, given):
50 given = json.loads(given)
50 given = json.loads(given)
51 if given.get('error'):
51 if given.get('error'):
52 pytest.fail("Unexpected ERROR in success response: {}".format(given['error']))
52 err = given['error']
53 pytest.fail(u"Unexpected ERROR in success response: {}".format(err))
53
54
54 expected = jsonify({
55 expected = jsonify({
55 'id': id_,
56 'id': id_,
General Comments 0
You need to be logged in to leave comments. Login now