Skip to content

Commit

Permalink
Added test_addslash
Browse files Browse the repository at this point in the history
  • Loading branch information
leekchan committed Sep 14, 2014
1 parent 2fd42e8 commit 7ffd83c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tornado/test/web_test.py
Expand Up @@ -2383,3 +2383,10 @@ def test_removeslash(self):
self.assertEqual(response.code, 302)
self.assertEqual(response.headers['Location'], '/removeslash')

def test_addslash(self):
self.http_client.fetch(self.get_url('/addslash'), self.stop,
follow_redirects=False)
response = self.wait()
self.assertEqual(response.code, 302)
self.assertEqual(response.headers['Location'], '/addslash/')

0 comments on commit 7ffd83c

Please sign in to comment.