From 93f529284741346829b052048d7aab2d03d728e2 Mon Sep 17 00:00:00 2001 From: Charlie Quinn Date: Fri, 23 Dec 2016 15:28:42 +0000 Subject: [PATCH] removed some code smells --- src/litmos/litmos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/litmos/litmos.py b/src/litmos/litmos.py index 70403e0..72e5721 100644 --- a/src/litmos/litmos.py +++ b/src/litmos/litmos.py @@ -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 @@ -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, @@ -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,