3 SLj@ @sldZy ddlZWnek r,ddlZYnXddlmZddddgZGd ddejZe dkrhej dS)z(Tests for google.protobuf.text_encoding.N) text_encodingfoo\rbar\nbaz\t foo bar baz "\'full of \"sound\" and \"fury\"\''full of "sound" and "fury"'signi\\fying\\ nothing\\signi\fying\ nothing\\010\t\n\013\014\r \t\n \r c@seZdZddZddZdS)TextEncodingTestCasecCsDx>tD]6\}}}|j|tj|dd|j|tj|ddqWdS)NF)Zas_utf8T) TEST_VALUES assertEqualrZCEscape)selfescaped escaped_utf8 unescapedr(/usr/lib/python3.6/text_encoding_test.py testCEscape9s z TextEncodingTestCase.testCEscapecCs<x6tD].\}}}|j|tj||j|tj|qWdS)N)r rrZ CUnescape)rrrrrrr testCUnescape@sz"TextEncodingTestCase.testCUnescapeN)__name__ __module__ __qualname__rrrrrrr 8sr __main__)rrr)rrr)rrr)r r r ) __doc__Z unittest2Zunittest ImportErrorZgoogle.protobufrr ZTestCaser rmainrrrr s(