mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-16 00:32:15 +00:00
Add asserts for integer handling of the escape functions.
This commit is contained in:
@@ -23,6 +23,7 @@ class TS3ProtoTest(unittest.TestCase):
|
||||
expected = r'\n\r\t'
|
||||
|
||||
self.assertEqual(self.ts3._escape_str(teststr), expected)
|
||||
self.assertEqual(self.ts3._escape_str(1), '1')
|
||||
|
||||
def testCharacterUnEscaping(self):
|
||||
|
||||
@@ -30,6 +31,8 @@ class TS3ProtoTest(unittest.TestCase):
|
||||
expected = '|/ abcdefg| |'
|
||||
|
||||
self.assertEqual(self.ts3._unescape_str(teststr), expected)
|
||||
self.assertEqual(self.ts3._unescape_str('1'), '1')
|
||||
self.assertEqual(self.ts3._unescape_str(1), '1')
|
||||
|
||||
def testFullCircle(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user