Skip to content
Myr

Use assert_equal instead of assertEquals

Before adoption: this commit came in with the history the project adopted, so no landing records it.

assertEquals is deprecated and its use inconsistent

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent 239780b · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:flask/testsuite/testing.py+4 added-4 removed
217 unmodified lines
218219 url = flask.url_for('view', company_id='xxx')220 response = self.client.get(url)221222 self.assertEquals(200, response.status_code)223 self.assertEquals(b'xxx', response.data)222 self.assert_equal(200, response.status_code)223 self.assert_equal(b'xxx', response.data)224225226 def test_nosubdomain(self):227 @self.app.route('/<company_id>')
2 unmodified lines
230231 url = flask.url_for('view', company_id='xxx')232 response = self.client.get(url)233234 self.assertEquals(200, response.status_code)235 self.assertEquals(b'xxx', response.data)234 self.assert_equal(200, response.status_code)235 self.assert_equal(b'xxx', response.data)236237238def suite():239 suite = unittest.TestSuite()
3 unmodified lines