def test_all(self): for sample in self.samples: objs = vfo.parse_export_objects(self.filer, sample.split("\n")) self.assertGreaterEqual(len(objs), 1) for o in objs: self.assertTrue(o.is_valid()) self.assertTrue(o.is_share in ("True", "False")) self.assertRegexpMatches(o.path, r"/.*")
def test_all(self): times = [] for i in range(5): tim_begin = time.time() objs = vfo.parse_export_objects(self.filer, self.exports) for o in objs: o.to_string(tim_begin, "emc") times.append((len(objs), time.time() - tim_begin)) print "vnx_file_objects.parse_export_objects" for t in times: print "Parse %d FileSystemExport in %f seconds" % (t[0], t[1])
def _init_export_info(self, export_info): exports = vfo.parse_export_objects(self, export_info) return ("FileSystemExport", exports)