Exemple #1
0
 def __init__(self, http_client):
     """Initialize a new client for the Hashmap v1 API."""
     self.http_client = http_client
     self.services = hashmap.ServiceManager(self.http_client)
     self.fields = hashmap.FieldManager(self.http_client)
     self.mappings = hashmap.MappingManager(self.http_client)
     self.groups = hashmap.GroupManager(self.http_client)
     self.thresholds = hashmap.ThresholdManager(self.http_client)
Exemple #2
0
 def setUp(self):
     super(GroupTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.GroupManager(self.api)
     self.resource = self.mgr.get(group_id=GROUP2['group_id'])
Exemple #3
0
 def setUp(self):
     super(GroupManagerTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.GroupManager(self.api)