def test_prepare_comment_utf8(self): text = prepare_comment("testtemplate $key", {"key": u"\xe1\xe1"}) self.assertEqual(text, u"testtemplate \xe1\xe1".encode('utf-8'))
def test_prepare_comment_utf8(self): text = prepare_comment("testtemplate $key", {"key": u"\xe1\xe1"}) self.assertEqual(text, u"testtemplate \xe1\xe1".encode("utf-8"))
def test_prepare_comment(self): text = prepare_comment("testtemplate $key", {"key": "value"}) self.assertEqual(text, "testtemplate value")