def test_defaults_implementation(self): w = RateFieldWidget() render_results = w.render("dummy_name", "4.5") self.assertIn(" $.extend($.fn.raty.defaults,", render_results)
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)