Skip to content

Commit

Permalink
removed some code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Quinn committed Dec 23, 2016
1 parent f55193a commit 93f5292
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/litmos/litmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def name(cls):
return p.plural(cls.__name__.lower())

@classmethod
def find(cls, id):
def find(cls, resource_id):
return cls._parse_response(
API.find(cls.name(), id)
API.find(cls.name(), resource_id)
)

@classmethod
Expand Down Expand Up @@ -116,7 +116,7 @@ class Team(LitmosType):
])

def sub_teams(self):
return self.__class__._parse_response(
return self._parse_response(
API.get_sub_resource(
self.__class__.name(),
self.Id,
Expand Down Expand Up @@ -149,7 +149,7 @@ def add_sub_team(self, sub_team):
if attribute_value is not None:
schema[param] = attribute_value

sub_team = self.__class__._parse_response(
sub_team = self._parse_response(
API.add_sub_resource(
self.__class__.name(),
self.Id,
Expand Down

0 comments on commit 93f5292

Please sign in to comment.