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