def test_untrimmed_workbook(self): wkbk = OPWorkbook(self.untrimmed_workbook, json.load(open(self.bibliophilly_json))) wkbk.validate() self.assertFalse(wkbk.has_metadata_errors())
def test_muslimworld(self): config_dict = json.load(open(self.muslim_world_json)) wkbk = OPWorkbook(self.muslim_world_workbook, config_dict) attrs = [key for key in config_dict['sheet_config']['pages']['fields']] wkbk.validate() self.assertFalse(wkbk.has_metadata_errors())
def test_has_metadata_errors(self): sheet = OPWorkbook(self.valid_workbook, self.get_config()) sheet.validate() self.assertFalse(sheet.has_metadata_errors())