def test_render_reset_button_false(self):
     w = JSignatureWidget(jsignature_attrs={'ResetButton': False})
     output = w.render(name='foo', value=None)
     self.assertEqual(0, len(pq('[type=button]', output)))
 def test_render(self):
     w = JSignatureWidget()
     output = w.render(name='foo', value=None)
     # Almost useless :/
     self.assertEqual(1, len(pq('.jsign-wrapper', output)))
     self.assertEqual(1, len(pq('[type=hidden]', output)))