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
7 from yardstick.dispatcher.influxdb_line_protocol import make_lines
10 class TestLineProtocol(unittest.TestCase):
12 def test_make_lines(self):
22 "measurement": "test",
24 "string_val": "hello!",
36 'test,integer_tag=2,string_tag=hello '
37 'bool_val=True,float_val=1.1,int_val=1i,string_val="hello!"\n'
40 def test_string_val_newline(self):
46 "multi_line": "line1\nline1\nline3"
54 'm1 multi_line="line1\\nline1\\nline3"\n'