Convert some test code to python2/3 (add parens for print)

This commit is contained in:
Jason Grout 2015-03-27 15:14:14 +00:00
parent b2f775549d
commit 5e83876fc7

View File

@ -216,7 +216,7 @@ casper.notebook_test(function () {
' self.msg = [content, buffers]', ' self.msg = [content, buffers]',
'x=TestWidget()', 'x=TestWidget()',
'display(x)', 'display(x)',
'print x.model_id'].join('\n'), function(index){ 'print(x.model_id)'].join('\n'), function(index){
testwidget.index = index; testwidget.index = index;
testwidget.model_id = this.get_output_cell(index).text.trim(); testwidget.model_id = this.get_output_cell(index).text.trim();
}); });
@ -239,7 +239,7 @@ casper.notebook_test(function () {
this.test.assertEquals(result, ["1.5", "2", "3.1"], "JSON custom serializer kernel -> js"); this.test.assertEquals(result, ["1.5", "2", "3.1"], "JSON custom serializer kernel -> js");
}); });
this.assert_output_equals('print x.array_list.tolist() == [1.51234, 25678.0, 3.1]', this.assert_output_equals('print(x.array_list.tolist() == [1.51234, 25678.0, 3.1])',
'True', 'JSON custom serializer js -> kernel'); 'True', 'JSON custom serializer js -> kernel');
if (this.slimerjs) { if (this.slimerjs) {