Enable debug in TestCase

This commit is contained in:
AKFish
2013-08-21 20:58:29 +08:00
parent 1d18ea75cc
commit e06257d060
3 changed files with 36 additions and 6 deletions
+5 -1
View File
@@ -45,6 +45,10 @@ class GithubObject(object):
'''
CHECK_AFTER_INIT_FLAG = False
@classmethod
def setCheckAfterInitFlag(cls, flag):
cls.CHECK_AFTER_INIT_FLAG = flag
def __init__(self, requester, headers, attributes, completed):
self._requester = requester
# Make sure headers are signed before any operations on attributes
@@ -55,7 +59,7 @@ class GithubObject(object):
# Ask requester to do some checking, for debug and test purpose
# Since it's most handy to access and kinda all-knowing
if (GithubObject.CHECK_AFTER_INIT_FLAG):
if (self.CHECK_AFTER_INIT_FLAG):
requester.check_me(self);
def _storeAndUseAttributes(self, attributes):