def test_it_joins_lists_of_strings(self, context): assert render(context, [Markup("<p>"), "Hello World", Markup("</p>")]) \ == Markup("<p>Hello World</p>")
def test_it_does_not_escape_markup(self, context): assert render(context, Markup("<p>Hello World</p>")) == "<p>Hello World</p>"
def test_it_returns_the_empty_string_if_called_with_nothing(self, context): assert render(context, []) == "" assert render(context, "") == ""
def test_it_escapes_strings(self, context): assert render(context, "<p>Hello World</p>") == "<p>Hello World</p>"
def test_it_returns_markup(self, context): assert isinstance(render(context, []), Markup) assert isinstance(render(context, ""), Markup) assert isinstance(render(context, "Hello World"), Markup) assert isinstance(render(context, Markup("<p>Hello World</p>")), Markup)