Beispiel #1
0
 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']))
Beispiel #2
0
 def ReadNode(self):
     super().ReadNode()
     self._filenames = fdt_util.GetStringList(self._node, 'filenames')
     self._pathnames = []