1 # Unittest for yardstick.dispatcher.influxdb_line_protocol
3 # yardstick comment: this file is a modified copy of
4 # influxdb-python/influxdb/tests/test_line_protocol.py
6 from __future__ import absolute_import
8 from third_party.influxdb.influxdb_line_protocol import make_lines
11 class TestLineProtocol(unittest.TestCase):
13 def test_make_lines(self):
23 "measurement": "test",
25 "string_val": "hello!",
37 'test,integer_tag=2,string_tag=hello '
38 'bool_val=True,float_val=1.1,int_val=1i,string_val="hello!"\n'
41 def test_string_val_newline(self):
47 "multi_line": "line1\nline1\nline3"
55 'm1 multi_line="line1\\nline1\\nline3"\n'