def testGetStringList(self): self.assertEqual(['message'], fdt_util.GetStringList(self.node, 'stringval')) self.assertEqual( ['multi-word', 'message'], fdt_util.GetStringList(self.node, 'stringarray')) self.assertEqual(['test'], fdt_util.GetStringList(self.node, 'missing', ['test']))
def ReadNode(self): super().ReadNode() self._filenames = fdt_util.GetStringList(self._node, 'filenames') self._pathnames = []