diff --git a/github/GithubObject.UnitTest.py b/github/GithubObject.UnitTest.py index 68beae74..d0069973 100644 --- a/github/GithubObject.UnitTest.py +++ b/github/GithubObject.UnitTest.py @@ -23,13 +23,13 @@ class TestCaseWithGithubTestObject( unittest.TestCase ): unittest.TestCase.tearDown( self ) def expectGet( self, url ): - return self.g.expect.rawRequest( "GET", url ) + return self.g.expect._rawRequest( "GET", url ) def expectPatch( self, url, data ): - return self.g.expect.rawRequest( "PATCH", url, data ) + return self.g.expect._rawRequest( "PATCH", url, data ) def expectDelete( self, url ): - return self.g.expect.rawRequest( "DELETE", url ) + return self.g.expect._rawRequest( "DELETE", url ) class GithubObjectWithOnlySimpleScalarAttributes( TestCaseWithGithubTestObject ): GithubTestObject = GithubObject( diff --git a/github/GithubObject.py b/github/GithubObject.py index 1a605bcb..ff252579 100644 --- a/github/GithubObject.py +++ b/github/GithubObject.py @@ -12,7 +12,7 @@ class SimpleScalarAttributes: return rawValue def updateAttributes( self, obj ): - attributes = obj._github.rawRequest( "GET", obj._baseUrl ) + attributes = obj._github._rawRequest( "GET", obj._baseUrl ) for attributeName in self.__attributeNames: if attributeName not in attributes: attributes[ attributeName ] = None @@ -43,7 +43,7 @@ class Editable: for argumentName in kwds: if argumentName not in itertools.chain( self.__mandatoryParameters, self.__optionalParameters ): raise TypeError() - attributes = self.__obj._github.rawRequest( "PATCH", self.__obj._baseUrl, kwds ) + attributes = self.__obj._github._rawRequest( "PATCH", self.__obj._baseUrl, kwds ) self.__obj._updateAttributes( attributes ) class AttributeDefinition: @@ -70,7 +70,7 @@ class Deletable: self.__obj = obj def __call__( self ): - self.__obj._github.rawRequest( "DELETE", self.__obj._baseUrl ) + self.__obj._github._rawRequest( "DELETE", self.__obj._baseUrl ) class AttributeDefinition: def getValueFromRawValue( self, obj, rawValue ):