Skip to content

Commit 5da4f50

Browse files
authored
Fix call to TestCase.assertEqual() (#19091)
`TestCase.assertEquals()` does not exist.
1 parent 8ab3bb4 commit 5da4f50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/openapi3/client/petstore/python/tests/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def test_valdiator(self):
408408
self.assertEqual(a.pattern_with_digits_and_delimiter, "image_123")
409409

410410
# test sanitize for serialization with different data types
411-
self.assertEquals(petstore_api.ApiClient().sanitize_for_serialization(a), {'byte': b'string', 'date': '2013-09-17', 'number': 123.45, 'password': 'testing09876', 'pattern_with_digits_and_delimiter': 'image_123'})
411+
self.assertEqual(petstore_api.ApiClient().sanitize_for_serialization(a), {'byte': b'string', 'date': '2013-09-17', 'number': 123.45, 'password': 'testing09876', 'pattern_with_digits_and_delimiter': 'image_123'})
412412

413413
# test sanitize for serialization with SecretStr (format: password)
414414
class LoginTest(BaseModel):

0 commit comments

Comments
 (0)