Skip to content

Commit 2f713f1

Browse files
committed
Update deprecated assertEquals calls
This method is not available in Python >= 3.12
1 parent 2e281b9 commit 2f713f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/operations/push/test_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_split_route_without_path(self):
4141

4242
def test_to_host_should_remove_unwanted_characters(self):
4343
host = PushOperation._to_host("idzone-3.0.7-rec-tb1_bobby")
44-
self.assertEquals("idzone-307-rec-tb1-bobby", host)
44+
self.assertEqual("idzone-307-rec-tb1-bobby", host)
4545

4646
@patch.object(
4747
sys,

test/v3/test_apps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_restart(self):
8181

8282
app = self.client.v3.apps.restart("app_id")
8383
self.assertIsInstance(app, JsonObject)
84-
self.assertEquals("my_app", app["name"])
84+
self.assertEqual("my_app", app["name"])
8585

8686
def test_remove(self):
8787
self.client.delete.return_value = self.mock_response("/v3/apps/app_id", HTTPStatus.NO_CONTENT, None)
@@ -94,15 +94,15 @@ def test_get_env(self):
9494
)
9595
env = self.client.v3.apps.get_env("app_id")
9696
self.assertIsInstance(env, JsonObject)
97-
self.assertEquals(env["application_env_json"]["VCAP_APPLICATION"]["limits"]["fds"], 16384)
97+
self.assertEqual(env["application_env_json"]["VCAP_APPLICATION"]["limits"]["fds"], 16384)
9898

9999
def test_get_routes(self):
100100
self.client.get.return_value = self.mock_response(
101101
"/v3/apps/app_id/routes", HTTPStatus.OK, None, "v3", "apps", "GET_{id}_routes_response.json"
102102
)
103103
routes = self.client.v3.apps.get_routes("app_id")
104104
self.assertIsInstance(routes, JsonObject)
105-
self.assertEquals(routes["resources"][0]["destinations"][0]["guid"], "385bf117-17f5-4689-8c5c-08c6cc821fed")
105+
self.assertEqual(routes["resources"][0]["destinations"][0]["guid"], "385bf117-17f5-4689-8c5c-08c6cc821fed")
106106

107107
def test_get_include_space_and_org(self):
108108
self.client.get.return_value = self.mock_response(

0 commit comments

Comments
 (0)