Skip to content

Commit

Permalink
Add test for PR #1 and issue pallets#740
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoguixu committed Jun 8, 2015
1 parent 81b5358 commit 65a7724
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,11 @@ def test_empty_path_info():
a.match("")
assert excinfo.value.new_url == "http://example.com/"

def test_both_bind_and_match_path_info_are_none(self):
m = r.Map([r.Rule(u'/', endpoint='index')])
ma = m.bind('example.org')
ma.match()
strict_eq(ma, ('index', {}))

def test_map_repr():
m = r.Map([
Expand Down

0 comments on commit 65a7724

Please sign in to comment.