From: Miro HronĨok Date: Thu, 29 Dec 2016 13:28:38 +0000 (+0100) Subject: Rename tests to avoid name collision X-Git-Tag: 2.9~40^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba7cba0a4e9cab4eaa05c2ef968461a086ab5030;p=thirdparty%2Fjinja.git Rename tests to avoid name collision Previously, two tests where not executed because of name collision --- diff --git a/tests/test_security.py b/tests/test_security.py index b033864f..c0442ce7 100644 --- a/tests/test_security.py +++ b/tests/test_security.py @@ -175,12 +175,12 @@ class TestStringFormat(object): t = env.from_string('{{ "a{0.foo}b".format({"foo": 42}) }}') assert t.render() == 'a42b' - def test_basic_format_safety(self): + def test_safe_format_safety(self): env = SandboxedEnvironment() t = env.from_string('{{ ("a{0.__class__}b{1}"|safe).format(42, "") }}') assert t.render() == 'ab<foo>' - def test_basic_format_all_okay(self): + def test_safe_format_all_okay(self): env = SandboxedEnvironment() t = env.from_string('{{ ("a{0.foo}b{1}"|safe).format({"foo": 42}, "") }}') assert t.render() == 'a42b<foo>'