Skip to content

Commit

Permalink
assertEquals is not a valid function name
Browse files Browse the repository at this point in the history
  • Loading branch information
briandrawert committed Sep 19, 2024
1 parent d2314b9 commit fb14813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_jsonify.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_equality_of_named_results(self):

results_from = Results.from_json(results.to_json())

self.assertEquals(results.to_json(), results_from.to_json())
self.assertEqual(results.to_json(), results_from.to_json())

def test_equality_of_named_results(self):
"""
Expand Down Expand Up @@ -178,7 +178,7 @@ def test_named_to_anon_accuracy(self):
model_2 = Model.from_json(model_1_json)

# Assert that the anonymized model_1 and the new model_2 are identical.
self.assertEquals(
self.assertEqual(
model_1.to_anon().to_json(),
model_2.to_json()
)
Expand All @@ -187,7 +187,7 @@ def test_named_to_anon_accuracy(self):
model_2 = model_2.to_named()

# Assert that model_1 and model_2 are still the same.
self.assertEquals(
self.assertEqual(
model_1.to_json(),
model_2.to_json()
)
Expand All @@ -205,7 +205,7 @@ def test_model_hash_whitespace_accuracy(self):
model_with_whitespace.add_species([X, Y])

# Up to this point the JSON hash of the two models should be the same.
self.assertEquals(model_no_whitespace.get_json_hash(), model_with_whitespace.get_json_hash())
self.assertEqual(model_no_whitespace.get_json_hash(), model_with_whitespace.get_json_hash())

# Add a custom reaction to both models, differing the amount of whitespace in the
# propensity functions.
Expand Down

0 comments on commit fb14813

Please sign in to comment.