We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ba12c commit 1cf37bdCopy full SHA for 1cf37bd
python3/httplib2test.py
@@ -1235,6 +1235,12 @@ def testNormalizeHeaders(self):
1235
self.assertTrue('cache-control' in h)
1236
self.assertTrue('other' in h)
1237
self.assertEqual('Stuff', h['other'])
1238
+
1239
+ def testConvertByteStr(self):
1240
+ with self.assertRaises(TypeError):
1241
+ httplib2._convert_byte_str(4)
1242
+ self.assertEqual('Hello World', httplib2._convert_byte_str(b'Hello World'))
1243
+ self.assertEqual('Bye World', httplib2._convert_byte_str('Bye World'))
1244
1245
def testExpirationModelTransparent(self):
1246
# Test that no-cache makes our request TRANSPARENT
0 commit comments