Permalink
Browse files

Test that reveals a bug in tw2.jqplugins.

  • Loading branch information...
ralphbean committed Sep 25, 2012
1 parent c2da40a commit 6a88d0413a0ec4972cb72c0e22f36a23e9a7c3ae
Showing with 20 additions and 0 deletions.
  1. +20 −0 tests/test_resources.py
@@ -360,6 +360,26 @@ def testUnEscapeMarked(self):
self.assert_("foo" in res, res)
self.assert_("bar" in res, res)
def testEncoderEmbedded(self):
""" JQGrid Issue #6
https://github.com/toscawidgets/tw2.jqplugins.jqgrid/issues/6
"""
enc = twc.encoder
data = {
'rowlist': [30, 60, 100],
}
result = enc.encode(data)
class Widget(twc.Widget):
inline_engine_name = "mako"
template = "${w.options | n}"
# If template is set to the following, then this fails.
#template = "${w.options}"
options = result
eq_(Widget.display().strip(), result.strip())
def testLinkHash(self):
l = twr.Link(link="http://google.com")
self.assert_(hash(l.req())) # meh

0 comments on commit 6a88d04

Please sign in to comment.