Browse Source

Use assert_equal instead of assertEquals

assertEquals is deprecated and its use inconsistent
pull/739/head
Daniel Neuhäuser 12 years ago
parent
commit
8e9f0bdedc
  1. 8
      flask/testsuite/testing.py

8
flask/testsuite/testing.py

@ -219,8 +219,8 @@ class SubdomainTestCase(FlaskTestCase):
url = flask.url_for('view', company_id='xxx')
response = self.client.get(url)
self.assertEquals(200, response.status_code)
self.assertEquals(b'xxx', response.data)
self.assert_equal(200, response.status_code)
self.assert_equal(b'xxx', response.data)
def test_nosubdomain(self):
@ -231,8 +231,8 @@ class SubdomainTestCase(FlaskTestCase):
url = flask.url_for('view', company_id='xxx')
response = self.client.get(url)
self.assertEquals(200, response.status_code)
self.assertEquals(b'xxx', response.data)
self.assert_equal(200, response.status_code)
self.assert_equal(b'xxx', response.data)
def suite():

Loading…
Cancel
Save