def test_template_choice_filter_with_flag(self): from easy_pjax.pjax_tags import pjax assert pjax("base.html", True) == "pjax_base.html" assert pjax("base.html", False) == "base.html"
def test_template_choice_filter_with_template_params(self): from easy_pjax.pjax_tags import pjax assert pjax("base.html,other_pjax.html", self.build_pjax_request()) == "other_pjax.html" assert pjax("base.html", self.build_regular_request()) == "base.html"