# Path: werkzeug/urls.py
# class _URLMixin(object):
# class URL(_URLTuple, _URLMixin):
# class BytesURL(_URLTuple, _URLMixin):
# class Href(object):
#     def replace(self, **kwargs):
#     def host(self):
#     def ascii_host(self):
#     def port(self):
#     def auth(self):
#     def username(self):
#     def raw_username(self):
#     def password(self):
#     def raw_password(self):
#     def decode_query(self, *args, **kwargs):
#     def join(self, *args, **kwargs):
#     def to_url(self):
#     def decode_netloc(self):
#     def to_uri_tuple(self):
#     def to_iri_tuple(self):
#     def _split_netloc(self):
#     def _split_auth(self):
#     def _split_host(self):
#     def __str__(self):
#     def encode_netloc(self):
#     def encode(self, charset='utf-8', errors='replace'):
#     def __str__(self):
#     def encode_netloc(self):
#     def decode(self, charset='utf-8', errors='replace'):
# def _unquote_to_bytes(string, unsafe=''):
# def _url_encode_impl(obj, charset, encode_keys, sort, key):
# def _url_unquote_legacy(value, unsafe=''):
# def url_parse(url, scheme=None, allow_fragments=True):
# def url_quote(string, charset='utf-8', errors='strict', safe='/:', unsafe=''):
# def url_quote_plus(string, charset='utf-8', errors='strict', safe=''):
# def url_unparse(components):
# def url_unquote(string, charset='utf-8', errors='replace', unsafe=''):
# def url_unquote_plus(s, charset='utf-8', errors='replace'):
# def url_fix(s, charset='utf-8'):
# def uri_to_iri(uri, charset='utf-8', errors='replace'):
# def iri_to_uri(iri, charset='utf-8', errors='strict'):
# def url_decode(s, charset='utf-8', decode_keys=False, include_empty=True,
#                errors='replace', separator='&', cls=None):
# def url_decode_stream(stream, charset='utf-8', decode_keys=False,
#                       include_empty=True, errors='replace', separator='&',
#                       cls=None, limit=None, return_iterator=False):
# def _url_decode_impl(pair_iter, charset, decode_keys, include_empty, errors):
# def url_encode(obj, charset='utf-8', encode_keys=False, sort=False, key=None,
#                separator=b'&'):
# def url_encode_stream(obj, stream=None, charset='utf-8', encode_keys=False,
#                       sort=False, key=None, separator=b'&'):
# def url_join(base, url, allow_fragments=True):
#     def __init__(self, base='./', charset='utf-8', sort=False, key=None):
#     def __getattr__(self, name):
#     def __call__(self, *path, **query):
# 
# Path: werkzeug/_compat.py
# PY2 = sys.version_info[0] == 2
#     def fix_tuple_repr(obj):
#         def __repr__(self):
#     def implements_iterator(cls):
#     def implements_to_string(cls):
#     def native_string_result(func):
#         def wrapper(*args, **kwargs):
#     def implements_bool(cls):
#     def make_literal_wrapper(reference):
#     def normalize_string_tuple(tup):
#     def try_coerce_native(s):
#     def wsgi_decoding_dance(s, charset='utf-8', errors='replace'):
#     def wsgi_encoding_dance(s, charset='utf-8', errors='replace'):
#     def to_bytes(x, charset=sys.getdefaultencoding(), errors='strict'):
#     def to_native(x, charset=sys.getdefaultencoding(), errors='strict'):
#     def iter_bytes(b):
#     def reraise(tp, value, tb=None):
#     def make_literal_wrapper(reference):
#     def normalize_string_tuple(tup):
#     def wsgi_get_bytes(s):
#     def wsgi_decoding_dance(s, charset='utf-8', errors='replace'):
#     def wsgi_encoding_dance(s, charset='utf-8', errors='replace'):
#     def to_bytes(x, charset=sys.getdefaultencoding(), errors='strict'):
#     def to_native(x, charset=sys.getdefaultencoding(), errors='strict'):
# def to_unicode(x, charset=sys.getdefaultencoding(), errors='strict',
#                allow_none_charset=False):


import unittest
from werkzeug.testsuite import WerkzeugTestCase
from werkzeug.datastructures import OrderedMultiDict
from werkzeug import urls
from werkzeug._compat import text_type, NativeStringIO, BytesIO
# -*- coding: utf-8 -*-
"""
    werkzeug.testsuite.urls
    ~~~~~~~~~~~~~~~~~~~~~~~

    URL helper tests.

    :copyright: (c) 2013 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.
"""




class URLsTestCase(WerkzeugTestCase):

    def test_replace(self):

# Path: werkzeug/urls.py
# class _URLMixin(object):
# class URL(_URLTuple, _URLMixin):
# class BytesURL(_URLTuple, _URLMixin):
# class Href(object):
#     def replace(self, **kwargs):
#     def host(self):
#     def ascii_host(self):
#     def port(self):
#     def auth(self):
#     def username(self):
#     def raw_username(self):
#     def password(self):
#     def raw_password(self):
#     def decode_query(self, *args, **kwargs):
#     def join(self, *args, **kwargs):
#     def to_url(self):
#     def decode_netloc(self):
#     def to_uri_tuple(self):
#     def to_iri_tuple(self):
#     def _split_netloc(self):
#     def _split_auth(self):
#     def _split_host(self):
#     def __str__(self):
#     def encode_netloc(self):
#     def encode(self, charset='utf-8', errors='replace'):
#     def __str__(self):
#     def encode_netloc(self):
#     def decode(self, charset='utf-8', errors='replace'):
# def _unquote_to_bytes(string, unsafe=''):
# def _url_encode_impl(obj, charset, encode_keys, sort, key):
# def _url_unquote_legacy(value, unsafe=''):
# def url_parse(url, scheme=None, allow_fragments=True):
# def url_quote(string, charset='utf-8', errors='strict', safe='/:', unsafe=''):
# def url_quote_plus(string, charset='utf-8', errors='strict', safe=''):
# def url_unparse(components):
# def url_unquote(string, charset='utf-8', errors='replace', unsafe=''):
# def url_unquote_plus(s, charset='utf-8', errors='replace'):
# def url_fix(s, charset='utf-8'):
# def uri_to_iri(uri, charset='utf-8', errors='replace'):
# def iri_to_uri(iri, charset='utf-8', errors='strict'):
# def url_decode(s, charset='utf-8', decode_keys=False, include_empty=True,
#                errors='replace', separator='&', cls=None):
# def url_decode_stream(stream, charset='utf-8', decode_keys=False,
#                       include_empty=True, errors='replace', separator='&',
#                       cls=None, limit=None, return_iterator=False):
# def _url_decode_impl(pair_iter, charset, decode_keys, include_empty, errors):
# def url_encode(obj, charset='utf-8', encode_keys=False, sort=False, key=None,
#                separator=b'&'):
# def url_encode_stream(obj, stream=None, charset='utf-8', encode_keys=False,
#                       sort=False, key=None, separator=b'&'):
# def url_join(base, url, allow_fragments=True):
#     def __init__(self, base='./', charset='utf-8', sort=False, key=None):
#     def __getattr__(self, name):
#     def __call__(self, *path, **query):
# 
# Path: werkzeug/_compat.py
# PY2 = sys.version_info[0] == 2
#     def fix_tuple_repr(obj):
#         def __repr__(self):
#     def implements_iterator(cls):
#     def implements_to_string(cls):
#     def native_string_result(func):
#         def wrapper(*args, **kwargs):
#     def implements_bool(cls):
#     def make_literal_wrapper(reference):
#     def normalize_string_tuple(tup):
#     def try_coerce_native(s):
#     def wsgi_decoding_dance(s, charset='utf-8', errors='replace'):
#     def wsgi_encoding_dance(s, charset='utf-8', errors='replace'):
#     def to_bytes(x, charset=sys.getdefaultencoding(), errors='strict'):
#     def to_native(x, charset=sys.getdefaultencoding(), errors='strict'):
#     def iter_bytes(b):
#     def reraise(tp, value, tb=None):
#     def make_literal_wrapper(reference):
#     def normalize_string_tuple(tup):
#     def wsgi_get_bytes(s):
#     def wsgi_decoding_dance(s, charset='utf-8', errors='replace'):
#     def wsgi_encoding_dance(s, charset='utf-8', errors='replace'):
#     def to_bytes(x, charset=sys.getdefaultencoding(), errors='strict'):
#     def to_native(x, charset=sys.getdefaultencoding(), errors='strict'):
# def to_unicode(x, charset=sys.getdefaultencoding(), errors='strict',
#                allow_none_charset=False):


# Path: werkzeug/testsuite/urls.py
import unittest
from werkzeug.testsuite import WerkzeugTestCase
from werkzeug.datastructures import OrderedMultiDict
from werkzeug import urls
from werkzeug._compat import text_type, NativeStringIO, BytesIO

# -*- coding: utf-8 -*-
"""
    werkzeug.testsuite.urls
    ~~~~~~~~~~~~~~~~~~~~~~~

    URL helper tests.

    :copyright: (c) 2013 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.
"""




class URLsTestCase(WerkzeugTestCase):

    def test_replace(self):

        url = urls.url_parse('http://de.wikipedia.org/wiki/Troll')