def __str__(self):
     return u'{}'.format(cpp_string_escape(self.string))
示例#2
0
 def __str__(self):
     return cpp_string_escape(self.string)
示例#3
0
def test_cpp_string_escape(string, expected):
    actual = helpers.cpp_string_escape(string)

    assert actual == expected