예제 #1
0
 def testIntegers(self):
     """Check that integers can be passed and returned"""
     self.assertEquals(0, libfdt.fdt_get_phandle(self.fdt._fdt, 0))
     node2 = self.fdt.path_offset('/subnode@2')
     self.assertEquals(0x2000, libfdt.fdt_get_phandle(self.fdt._fdt, node2))
예제 #2
0
 def testIntegers(self):
     """Check that integers can be passed and returned"""
     self.assertEquals(0, libfdt.fdt_get_phandle(self.fdt._fdt, 0))
     node2 = self.fdt.path_offset('/subnode@2')
     self.assertEquals(0x2000, libfdt.fdt_get_phandle(self.fdt._fdt, node2))