Example #1
0
 def test_attribute(self):
     p = make_path(":NXentry/:NXinstrument@NX_class")
     self.assertTrue(not is_absolute(p))
     self.assertEqual(p.attribute,"NX_class")
     p.attribute="date"
     self.assertEqual(p.attribute,"date")
Example #2
0
 def test_creation(self):
     str_path = "file.nxs://:NXentry/:NXinstrument/data@units"
     p = make_path(str_path)
     self.assertTrue(is_absolute(p))
     self.assertEqual(p.size,4)
     self.assertEqual(p.__str__(),str_path)