Esempio n. 1
0
 def test_UnicodeString(self):
     us = unicode("test string\\u8034")
     dw = DotWriter(None)
     out = dw.escape(us)
     assert isinstance(out, bytes)
Esempio n. 2
0
 def test_UnicodeString(self):
     us = unicode("test string\\u8034")
     dw = DotWriter(None)
     out = dw.escape(us)
     assert isinstance(out, bytes)
Esempio n. 3
0
 def test_BaseString(self):
     bs = b'test string'
     dw = DotWriter(None)
     out = dw.escape(bs)
     assert isinstance(out, bytes)
Esempio n. 4
0
 def test_BaseString(self):
     bs = b'test string'
     dw = DotWriter(None)
     out = dw.escape(bs)
     assert isinstance(out, bytes)