def test_metshdr_attrs(): metshdr = mm.MetsHdr(ID='ie1', ADMID='ie1-amd', CREATEDATE='2016-06-01', LASTMODDATE='2016-06-03', IS_HORSEY='false') # assert(metshdr.tag == '{http://www.loc.gov/METS/}metsHdr') metshdr.RECORDSTATUS = 'ACTIVE' print("attrib length is {}".format(len(metshdr.attrib))) assert (len(metshdr.attrib)) == 5
def test_metshdr_tag(): metshdr = mm.MetsHdr() assert (metshdr.tag == '{http://www.loc.gov/METS/}metsHdr')