def configure_rule_with_single_item_eval_type(self, fledge_url, cat_name):
    conn = http.client.HTTPConnection(fledge_url)
    data = {'asset': self.ASSET_NAME, 'datapoint': 'sensor', 'evaluation_data': 'Single Item', 'condition': '>', 'trigger_value': str((self.SENSOR_VALUE - 10))}
    conn.request('PUT', '/fledge/category/rule{}'.format(cat_name), json.dumps(data))
    r = conn.getresponse()
    assert (200 == r.status)
def configure_rule_with_single_item_eval_type(self, fledge_url, cat_name):
    conn = http.client.HTTPConnection(fledge_url)
    data = {'asset': self.ASSET_NAME, 'datapoint': 'sensor', 'evaluation_data': 'Single Item', 'condition': '>', 'trigger_value': str((self.SENSOR_VALUE - 10))}
    conn.request('PUT', '/fledge/category/rule{}'.format(cat_name), json.dumps(data))
    r = conn.getresponse()
    assert (200 == r.status)