def test_connect_wrong_args(self):
    '\n        `Connection.connect` raises `TypeError` if called with a non-address\n        argument.\n        '
    connection = Connection(Context(TLSv1_METHOD), socket_any_family())
    with pytest.raises(TypeError):
        connection.connect(None)
`Connection.connect` raises `TypeError` if called with a non-address
argument.
def test_connect_wrong_args(self):
    '\n        `Connection.connect` raises `TypeError` if called with a non-address\n        argument.\n        '
    connection = Connection(Context(TLSv1_METHOD), socket_any_family())
    with pytest.raises(TypeError):
        connection.connect(None)