def test_sample_data_noio(self): """ Get ceph information from sample data, missing the 'client io' """ f = open('sample-noio.txt') self.assertEqual(process_ceph_status(f.read()), {}) f.close()
def test_sample_data_noio(self): """ Get ceph information from sample data, missing the 'client io' """ f = open("sample-noio.txt") self.assertEqual(process_ceph_status(f.read()), {}) f.close()
def test_sample_data(self): """ Get ceph information from sample data """ f = open('sample.txt') ret = {'rd': '8643000.0', 'wr': '4821000.0', 'iops': '481'} self.assertEqual(process_ceph_status(f.read()), ret) f.close()
def test_sample_data(self): """ Get ceph information from sample data """ f = open("sample.txt") ret = {"rd": "8643", "wr": "4821", "iops": "481"} self.assertEqual(process_ceph_status(f.read()), ret) f.close()