Lines Matching refs:str
192 if isinstance(protocol, str):
218 if isinstance(version, str):
377 self.assertEqual(str(proto), str(proto.value))
525 self.assertIsInstance(s, str)
618 str(cm.warning)
629 str(cm.warning)
642 str(cm.warning)
931 self.assertIn(r, str(cm.warning.args[0]))
1011 self.assertIsInstance(obj.shortname, str)
1012 self.assertIsInstance(obj.longname, str)
1013 self.assertIsInstance(obj.oid, (str, type(None)))
1046 self.assertEqual(str(cx.exception), "only stream sockets are supported")
1050 self.assertEqual(str(cx.exception), "only stream sockets are supported")
1850 # The str() of a SSLError doesn't include the errno
1852 self.assertEqual(str(e), "foo")
1856 self.assertEqual(str(e), "foo")
1867 s = str(cm.exception)
1882 s = str(cm.exception)
2465 self.server.conn_errors.append(str(e))
2482 self.server.conn_errors.append(str(e))
2508 sys.stdout.write(" server: connection cipher is now " + str(cipher) + "\n")
2981 str(e.exception)
2991 str(e.exception)
3001 str(e.exception))
3024 sys.stdout.write("Connection cipher is " + str(cipher) + '.\n')
3397 % str(x))
3678 if not str(e).startswith(meth_name):
3707 if not str(e).startswith(meth_name):
3999 self.assertIn("alert", str(e.exception))
4201 % (str(server_protocols), str(client_protocols),
4202 str(expected))
4440 self.assertEqual(str(e.exception), 'Value is not a SSLSession.')
4448 self.assertEqual(str(e.exception),
4467 self.assertEqual(str(e.exception),
4719 self.assertIsInstance(pem, str)