def testDimensions(self): simpleRecord = { 'acc_no': '2020.142.2', 'condition_date': ['sometime in 1984'], 'running_time': '234' } some_xml = create_cspace_records.xml_from(simpleRecord) self.assertTrue(some_xml.find('dimension') > -1) self.assertTrue(some_xml.find('minutes') > -1)
def testConditionProcessing(self): simpleRecord = { 'acc_no': '2020.142.2', 'condition_date': ['sometime in 1984'] } some_xml = create_cspace_records.xml_from(simpleRecord) self.assertTrue(some_xml.find('condition') > -1) self.assertTrue(some_xml.find('1984') > -1) self.assertTrue(some_xml.find('2020.142') > -1)
def testBasicXmlBuild(self): """should be able to find the object's title and author's birthdate""" simpleRecord = {'title': ['Unspeakable Test Object Of Blinding Clarity'], 'acc_no': '2020.142.1', 'date': '11/14/2020', 'description': ['for testing'] } some_xml = create_cspace_records.xml_from(simpleRecord) self.assertTrue(some_xml.find('Clarity') > -1) self.assertTrue(some_xml.find('2020.142') > -1)