def test_build_container(self): for xml, rootfiles in rootfiles_test_data: result = ucf._build_container(rootfiles) # Instead of comparing the XML, parse both into the list of # rootfiles again. Not *actually* equivalent, but it will do. expected = ucf._read_rootfiles(xml) result = ucf._read_rootfiles(result) assert result == expected
def test_read_rootfiles(self): for xml, expected in rootfiles_test_data: result = ucf._read_rootfiles(xml) assert result == expected