Beispiel #1
0
 def __init__(self, config=dict()):
     self.logger = logging.getLogger(__name__)
     self.config = config
     self.intelroccs = IntelROCCSService(self.config)
     self.crab = CRABService(self.config)
     self.storage = StorageManager(self.config)
     self.soft_limit = float(self.config['rocker_board']['soft_limit'])
     self.hard_limit = float(self.config['rocker_board']['hard_limit'])
Beispiel #2
0
 def test_intelroccs(self):
     "Test intelroccs functions"
     print ""
     intelroccs = IntelROCCSService(config=self.config)
     api = 'Detox'
     file_ = 'SitesInfo.txt'
     json_data = intelroccs.fetch(api=api,
                                  params=file_,
                                  secure=False,
                                  cache=False)
     result = json_data['data']
     self.assertTrue(len(result) > 1)