示例#1
0
 def test_raw_encode(self):
     self.assertTupleEqual(raw_encode('foo'.encode('utf-8')),
                           ('application/data', 'binary',
                               'foo'.encode('utf-8')))
示例#2
0
 def test_raw_encode(self):
     self.assertTupleEqual(
         raw_encode('foo'.encode('utf-8')),
         ('application/data', 'binary', 'foo'.encode('utf-8')),
     )
示例#3
0
 def test_raw_encode(self):
     assert raw_encode(b'foo') == (
         'application/data', 'binary', b'foo',
     )
示例#4
0
 def test_raw_encode(self):
     self.assertTupleEqual(raw_encode("foo".encode("utf-8")),
                           ("application/data", "binary",
                               "foo".encode("utf-8")))
示例#5
0
 def test_raw_encode(self):
     self.assertTupleEqual(
         raw_encode("foo".encode("utf-8")),
         ("application/data", "binary", "foo".encode("utf-8")))
示例#6
0
 def test_raw_encode(self):
     assert raw_encode('foo'.encode('utf-8')) == (
         'application/data',
         'binary',
         'foo'.encode('utf-8'),
     )
示例#7
0
 def test_raw_encode(self):
     assert raw_encode('foo'.encode('utf-8')) == (
         'application/data', 'binary', 'foo'.encode('utf-8'),
     )