Use assert_equal instead of assertEquals
assertEquals is deprecated and its use inconsistent
This commit is contained in:
parent
239780be28
commit
8e9f0bdedc
1 changed files with 4 additions and 4 deletions
|
|
@ -219,8 +219,8 @@ class SubdomainTestCase(FlaskTestCase):
|
||||||
url = flask.url_for('view', company_id='xxx')
|
url = flask.url_for('view', company_id='xxx')
|
||||||
response = self.client.get(url)
|
response = self.client.get(url)
|
||||||
|
|
||||||
self.assertEquals(200, response.status_code)
|
self.assert_equal(200, response.status_code)
|
||||||
self.assertEquals(b'xxx', response.data)
|
self.assert_equal(b'xxx', response.data)
|
||||||
|
|
||||||
|
|
||||||
def test_nosubdomain(self):
|
def test_nosubdomain(self):
|
||||||
|
|
@ -231,8 +231,8 @@ class SubdomainTestCase(FlaskTestCase):
|
||||||
url = flask.url_for('view', company_id='xxx')
|
url = flask.url_for('view', company_id='xxx')
|
||||||
response = self.client.get(url)
|
response = self.client.get(url)
|
||||||
|
|
||||||
self.assertEquals(200, response.status_code)
|
self.assert_equal(200, response.status_code)
|
||||||
self.assertEquals(b'xxx', response.data)
|
self.assert_equal(b'xxx', response.data)
|
||||||
|
|
||||||
|
|
||||||
def suite():
|
def suite():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue