

def test_test_ttl(self):
    '\n        Asserts TTL Distribution in Seconds for test namespace with heading, header & parameters.\n        ToDo: test for values as well\n        '
    exp_heading = '~~test - TTL Distribution in Seconds~~'
    exp_header = 'Percentage of records having ttl less than or equal\n                        to value measured in Seconds\n                        Node   10%   20%   30%   40%   50%   60%   70%   80%   90%   100%'
    (actual_heading, actual_header, actual_params) = test_util.parse_output(TestShowDistribution.test_ttl_distri, horizontal=True, mearge_header=False)
    if ('Node' not in actual_header):
        actual_header += (' ' + TestShowDistribution.test_ttl_distri.split('\n')[3])
    exp_header = ' '.join(exp_header.split())
    actual_header = ' '.join([exp_header for item in actual_header.split() if (not item.startswith('\x1b'))])
    self.assertTrue((exp_heading in actual_heading))
    self.assertEqual(exp_header.strip(), actual_header.strip())

dataset/ETHPy150Open aerospike/aerospike-admin/test/e2e/test_show.py TestShowDistribution.test_test_ttl/VarMisuse@94/276 `item`->`exp_header`