示例#1
0
 def test_defaults_implementation(self):
     w = RateFieldWidget()
     render_results = w.render("dummy_name", "4.5")
     self.assertIn(" $.extend($.fn.raty.defaults,", render_results)
示例#2
0
 def test_render(self):
     w = RateFieldWidget()
     render_results = w.render("dummy_name", "4.5")
     self.assertIn('scoreName="dummy_name"', render_results)
     self.assertIn('data-score="4.5"', render_results)