class Redact(APIOperation): ''' classdocs ''' def __init__(self): self.api = RedactionAPI() self.cr = CReader('../APIInterface/sampledata') def probe(self): self.api.connect() self.api.dispReq(self.api.req) self.api.dispRes(self.api.res)
class RedactionTester(APITestCase): def setUp(self): print('R') self.api = RedactionAPI(FileReader.creds, self.cdir + self.cfile) self.api.setParams(id=TESTID) def tearDown(self): self.api = None def test_21_GetNoProxyAuth(self): self.api.connect() self.api.dispRes(self.api.res) def test_30_BasicJSONWrite(self): self.api.connect() be = json.dumps(self.api.res) pp = json.dumps(self.api.res, sort_keys=True, indent=4, separators=(',', ': ')) print(be, pp)
def __init__(self): self.api = RedactionAPI() self.cr = CReader('../APIInterface/sampledata')
def setUp(self): print('R') self.api = RedactionAPI(FileReader.creds, self.cdir + self.cfile) self.api.setParams(id=TESTID)