Skip to content

Commit

Permalink
Fixed python3 deprecation warnings in test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nCrazed committed Jan 7, 2014
1 parent 4b93f8b commit 57e0898
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ def setUp(self):
def test_home_page_works(self):
rv = self.app.get('/')
self.assertTrue(rv.data)
self.assertEquals(rv.status_code, 200)
self.assertEqual(rv.status_code, 200)

def test_about_page_works(self):
rv = self.app.get('/about/')
self.assertTrue(rv.data)
self.assertEquals(rv.status_code, 200)
self.assertEqual(rv.status_code, 200)

def test_default_redirecting(self):
rv = self.app.get('/about')
self.assertEquals(rv.status_code, 301)
self.assertEqual(rv.status_code, 301)

def test_404_page(self):
rv = self.app.get('/i-am-not-found/')
self.assertEquals(rv.status_code, 404)
self.assertEqual(rv.status_code, 404)

def test_static_text_file_request(self):
rv = self.app.get('/robots.txt')
self.assertTrue(rv.data)
self.assertEquals(rv.status_code, 200)
self.assertEqual(rv.status_code, 200)


if __name__ == '__main__':
Expand Down

0 comments on commit 57e0898

Please sign in to comment.