Ejemplo n.º 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)
Ejemplo n.º 2
0
 def setUp(self):
     super(MappingTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.MappingManager(self.api)
     self.resource = self.mgr.get(mapping_id=FIELD_MAPPING1['mapping_id'])
Ejemplo n.º 3
0
 def setUp(self):
     super(MappingManagerTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.MappingManager(self.api)