Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed camelCase methods. (bunq/sdk_python#45) #48

Merged
merged 1 commit into from
Nov 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/model/generated/object/test_notification_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def execute_notification_url_test(self,
:return: None
"""

notification_url = self.getNotificationUrl(file_path)
notification_url = self.get_notification_url(file_path)
self.assertIsNotNone(notification_url)
self.assertIsNotNone(notification_url.object_)

Expand All @@ -84,30 +84,30 @@ def execute_notification_url_test(self,
self.assertIsNotNone(expected_model)
self.assertIsNotNone(referenced_model)
self.assertTrue(
self.isModelReference(
self.is_model_reference(
referenced_model,
class_name
)
)

@classmethod
def isModelReference(cls, referenced_model, class_name):
def is_model_reference(cls, referenced_model, class_name):
"""
:type referenced_model: core.BunqModel
:type class_name: str

:rtype: bool
"""

model_type = cls.getModelTypeOrNone(class_name)
model_type = cls.get_model_type_or_none(class_name)

if model_type is None:
return False

return isinstance(referenced_model, model_type)

@classmethod
def getModelTypeOrNone(cls, class_name):
def get_model_type_or_none(cls, class_name):
"""
:type class_name: str

Expand All @@ -120,7 +120,7 @@ def getModelTypeOrNone(cls, class_name):

return None

def getNotificationUrl(self, file_path):
def get_notification_url(self, file_path):
"""
:type file_path: str

Expand Down