Skip to content

Commit

Permalink
test correction
Browse files Browse the repository at this point in the history
  • Loading branch information
xavArtley committed Apr 2, 2019
1 parent 4d98ac8 commit ad5b899
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions panel/pane/tests/test_ace.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from panel.pane import Ace

code="""
code = """
import math
x = 10
math.sin(x)**2 + math.cos(x)**2 == 1
Expand All @@ -11,8 +11,9 @@ def test_ace_pane(document, comm):
pane = Ace(code=code)

# Create pane
model = pane.get_root(document, comm=comm)
assert pane._models[model.ref['id']][0] is model
root = pane.get_root(document, comm=comm)
model = pane._get_model(document, root, None, comm)
assert pane._models[root.ref['id']][0] is model
assert model.code == code

# Cleanup
Expand Down

0 comments on commit ad5b899

Please sign in to comment.