예제 #1
0
 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()
예제 #2
0
 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()
예제 #3
0
 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()
예제 #4
0
 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()
예제 #5
0
파일: test_ceph.py 프로젝트: Affirm/Diamond
 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()