def setUp(self):
     request = None
     response = MockResponse(json_content=get_resource_as_json('version.json'))
     self.resource = Version(request, response)
 def setUp(self):
     request = None
     response = MockResponse(json_content=get_resource_as_json("version.json"))
     self.resource = Version(request, response)
 def setUp(self):
     request = None
     response = MockResponse(
         json_content=get_resource_as_json('metric_datapoints.json'))
     self.resource = MetricDataPoints(request, response)
    def test_parsing_response(self):
        request = None
        json = get_resource_as_json('metric_tags.json')
        resource = MetricTags(request, MockResponse(json_content=json))

        self.assertEqual(len(resource.results), 1)
 def setUp(self):
     request = None
     response = MockResponse(json_content=get_resource_as_json("metric_datapoints.json"))
     self.resource = MetricDataPoints(request, response)