Skip to content
Myr

Make sure that there is a test for subdomain matching with ports

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 67101c8 · Browse files · 1 file+11 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−0 removed

  • other:+11 added−0 removed

1 file+11 added−0 removed

modified:flask/testsuite/basic.py+11 added
959 unmodified lines
960 c = app.test_client()961 rv = c.get('/', 'http://mitsuhiko.localhost/')962 self.assert_equal(rv.data, 'index for mitsuhiko')963964 def test_subdomain_matching_with_ports(self):965 app = flask.Flask(__name__)966 app.config['SERVER_NAME'] = 'localhost:3000'967 @app.route('/', subdomain='<user>')968 def index(user):969 return 'index for %s' % user970971 c = app.test_client()972 rv = c.get('/', 'http://mitsuhiko.localhost:3000/')973 self.assert_equal(rv.data, 'index for mitsuhiko')974975 @emits_module_deprecation_warning976 def test_module_subdomain_support(self):977 app = flask.Flask(__name__)978 mod = flask.Module(__name__, 'test', subdomain='testing')
25 unmodified lines