def test_get_threshold_values(): httpretty.register_uri(httpretty.GET, NEW_RELIC_REGEX, body=THRESHOLD_VALUES_SAMPLE, status=200) # When I make an API request to view threshold values c = Client(account_id="1", api_key="2") # Then I should receive an array of Threshold values result = c.get_threshold_values("foo") result.should.be.a('list') result[0].should.be.a('pyrelic.Threshold')
def test_get_threshold_values(): httpretty.register_uri(httpretty.GET, NEW_RELIC_REGEX, body=THRESHOLD_VALUES_SAMPLE, status=200 ) # When I make an API request to view threshold values c = Client(account_id="1", api_key="2") # Then I should receive an array of Threshold values result = c.get_threshold_values("foo") result.should.be.a('list') result[0].should.be.a('pyrelic.Threshold')